mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'fix-splat-panel-slope' into 'master'
Obj_SneakerPanelSetup: call P_CheckPosition directly and manually set standingslope Closes #700 See merge request KartKrew/Kart!1715
This commit is contained in:
commit
e2cb791a15
1 changed files with 15 additions and 1 deletions
|
|
@ -44,7 +44,21 @@ void Obj_SneakerPanelSetup(mobj_t *mobj, mapthing_t *mthing)
|
|||
mobj->eflags |= MFE_VERTICALFLIP;
|
||||
mobj->flags2 |= MF2_OBJECTFLIP;
|
||||
}
|
||||
P_TryMove(mobj, mobj->x, mobj->y, true, NULL); // sets standingslope
|
||||
|
||||
if (P_CheckPosition(mobj, mobj->x, mobj->y, NULL))
|
||||
{
|
||||
if (P_IsObjectFlipped(mobj))
|
||||
{
|
||||
if (tm.ceilingz <= mobj->z + mobj->height)
|
||||
mobj->standingslope = tm.ceilingslope;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (mobj->z <= tm.floorz)
|
||||
mobj->standingslope = tm.floorslope;
|
||||
}
|
||||
}
|
||||
|
||||
Obj_SneakerPanelSpriteScale(mobj);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue