change for loop in fldeff_cut

This commit is contained in:
DizzyEggg 2018-06-30 14:26:33 +02:00
parent 9329ffc2bc
commit cdacc27714
2 changed files with 5 additions and 3 deletions

View File

@ -352,10 +352,11 @@ static void StartCutGrassFieldEffect(void)
bool8 FldEff_CutGrass(void)
{
s16 x, y;
u8 tileBehavior;
u8 i;
u8 i = 0;
for (i = 0, PlaySE(SE_W015), PlayerGetDestCoords(&gPlayerFacingPosition.x, &gPlayerFacingPosition.y); i < CUT_HYPER_AREA; i++)
PlaySE(SE_W015);
PlayerGetDestCoords(&gPlayerFacingPosition.x, &gPlayerFacingPosition.y);
for (i = 0; i < CUT_HYPER_AREA; i++)
{
if (sHyperCutTiles[i] == TRUE)
{

View File

@ -6,6 +6,7 @@
#include "rom6.h"
#include "script.h"
#include "task.h"
#include "constants/event_objects.h"
// static functions
static void FldEff_UseStrength(void);