Added BUGFIX for groundEffectsOnMove when the player stops Surfing
This commit is contained in:
@@ -1663,6 +1663,10 @@ static void Task_WaitStopSurfing(u8 taskId)
|
|||||||
gPlayerAvatar.preventStep = FALSE;
|
gPlayerAvatar.preventStep = FALSE;
|
||||||
UnlockPlayerFieldControls();
|
UnlockPlayerFieldControls();
|
||||||
DestroySprite(&gSprites[playerObjEvent->fieldEffectSpriteId]);
|
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);
|
DestroyTask(taskId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user