mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-27 22:03:53 +01:00
change for loop in fldeff_cut
This commit is contained in:
parent
9329ffc2bc
commit
cdacc27714
@ -352,10 +352,11 @@ static void StartCutGrassFieldEffect(void)
|
|||||||
bool8 FldEff_CutGrass(void)
|
bool8 FldEff_CutGrass(void)
|
||||||
{
|
{
|
||||||
s16 x, y;
|
s16 x, y;
|
||||||
u8 tileBehavior;
|
u8 i = 0;
|
||||||
u8 i;
|
|
||||||
|
|
||||||
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)
|
if (sHyperCutTiles[i] == TRUE)
|
||||||
{
|
{
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
#include "rom6.h"
|
#include "rom6.h"
|
||||||
#include "script.h"
|
#include "script.h"
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
|
#include "constants/event_objects.h"
|
||||||
|
|
||||||
// static functions
|
// static functions
|
||||||
static void FldEff_UseStrength(void);
|
static void FldEff_UseStrength(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user