change for loop in fldeff_cut
This commit is contained in:
parent
9329ffc2bc
commit
cdacc27714
2 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue