fix sand onto sideways stairs bug
This commit is contained in:
parent
397da3736c
commit
01d08d3cee
@ -119,6 +119,6 @@
|
|||||||
#define DIR_NORTHEAST 8
|
#define DIR_NORTHEAST 8
|
||||||
|
|
||||||
#define SLOW_MOVEMENT_ON_STAIRS TRUE
|
#define SLOW_MOVEMENT_ON_STAIRS TRUE
|
||||||
#define FOLLOW_ME_IMPLEMENTED TRUE //for stairs movement. see ObjectMovingOnRockStairs in src/field_player_avatar.c
|
#define FOLLOW_ME_IMPLEMENTED FALSE //for stairs movement. see ObjectMovingOnRockStairs in src/field_player_avatar.c
|
||||||
|
|
||||||
#endif // GUARD_CONSTANTS_GLOBAL_H
|
#endif // GUARD_CONSTANTS_GLOBAL_H
|
||||||
|
|||||||
@ -7900,12 +7900,17 @@ static void GetGroundEffectFlags_LongGrassOnBeginStep(struct ObjectEvent *objEve
|
|||||||
|
|
||||||
static void GetGroundEffectFlags_Tracks(struct ObjectEvent *objEvent, u32 *flags)
|
static void GetGroundEffectFlags_Tracks(struct ObjectEvent *objEvent, u32 *flags)
|
||||||
{
|
{
|
||||||
if (MetatileBehavior_IsDeepSand(objEvent->previousMetatileBehavior))
|
u8 behavior = objEvent->previousMetatileBehavior;
|
||||||
|
|
||||||
|
if (objEvent->directionOverwrite)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (MetatileBehavior_IsDeepSand(behavior))
|
||||||
{
|
{
|
||||||
*flags |= GROUND_EFFECT_FLAG_DEEP_SAND;
|
*flags |= GROUND_EFFECT_FLAG_DEEP_SAND;
|
||||||
}
|
}
|
||||||
else if (MetatileBehavior_IsSandOrDeepSand(objEvent->previousMetatileBehavior)
|
else if (MetatileBehavior_IsSandOrDeepSand(behavior)
|
||||||
|| MetatileBehavior_IsFootprints(objEvent->previousMetatileBehavior))
|
|| MetatileBehavior_IsFootprints(behavior))
|
||||||
{
|
{
|
||||||
*flags |= GROUND_EFFECT_FLAG_SAND;
|
*flags |= GROUND_EFFECT_FLAG_SAND;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user