Added fix to Keep the Camera from Making Waves

This commit is contained in:
pkmnsnfrn
2024-04-05 14:58:31 -07:00
parent f19747d6cc
commit f9d690bafe

View File

@@ -8070,7 +8070,11 @@ static void DoGroundEffects_OnSpawn(struct ObjectEvent *objEvent, struct Sprite
{
u32 flags;
#ifdef BUGFIX
if (objEvent->triggerGroundEffectsOnMove && objEvent->localId != OBJ_EVENT_ID_CAMERA)
#else
if (objEvent->triggerGroundEffectsOnMove)
#endif
{
flags = 0;
UpdateObjectEventElevationAndPriority(objEvent, sprite);
@@ -8086,7 +8090,11 @@ static void DoGroundEffects_OnBeginStep(struct ObjectEvent *objEvent, struct Spr
{
u32 flags;
#ifdef BUGFIX
if (objEvent->triggerGroundEffectsOnMove && objEvent->localId != OBJ_EVENT_ID_CAMERA)
#else
if (objEvent->triggerGroundEffectsOnMove)
#endif
{
flags = 0;
UpdateObjectEventElevationAndPriority(objEvent, sprite);
@@ -8103,7 +8111,11 @@ static void DoGroundEffects_OnFinishStep(struct ObjectEvent *objEvent, struct Sp
{
u32 flags;
#ifdef BUGFIX
if (objEvent->triggerGroundEffectsOnStop && objEvent->localId != OBJ_EVENT_ID_CAMERA)
#else
if (objEvent->triggerGroundEffectsOnStop)
#endif
{
flags = 0;
UpdateObjectEventElevationAndPriority(objEvent, sprite);