Added BUGFIX for groundEffectsOnMove when the player stops Surfing
This commit is contained in:
parent
f19747d6cc
commit
7ee921e9da
1 changed files with 4 additions and 0 deletions
|
@ -1663,6 +1663,10 @@ static void Task_WaitStopSurfing(u8 taskId)
|
|||
gPlayerAvatar.preventStep = FALSE;
|
||||
UnlockPlayerFieldControls();
|
||||
DestroySprite(&gSprites[playerObjEvent->fieldEffectSpriteId]);
|
||||
#ifdef BUGFIX
|
||||
// If this is not defined but the player steps into grass from surfing, they will appear over the grass instead of in the grass.
|
||||
playerObjEvent->triggerGroundEffectsOnMove = TRUE;
|
||||
#endif
|
||||
DestroyTask(taskId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue