mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-17 10:11:12 +00:00
Monster Iestyn's Falling-Rocks-On-Slope fix
This commit is contained in:
parent
cdf8d793bd
commit
1ad993236f
1 changed files with 12 additions and 0 deletions
12
src/p_mobj.c
12
src/p_mobj.c
|
@ -6937,6 +6937,18 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
}
|
}
|
||||||
else switch (mobj->type)
|
else switch (mobj->type)
|
||||||
{
|
{
|
||||||
|
case MT_FALLINGROCK:
|
||||||
|
// Despawn rocks here in case zmovement code can't do so (blame slopes)
|
||||||
|
if (!mobj->momx && !mobj->momy && !mobj->momz
|
||||||
|
&& ((mobj->eflags & MFE_VERTICALFLIP) ?
|
||||||
|
mobj->z + mobj->height >= mobj->ceilingz
|
||||||
|
: mobj->z <= mobj->floorz))
|
||||||
|
{
|
||||||
|
P_RemoveMobj(mobj);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
P_MobjCheckWater(mobj);
|
||||||
|
break;
|
||||||
case MT_EMERALDSPAWN:
|
case MT_EMERALDSPAWN:
|
||||||
if (mobj->threshold)
|
if (mobj->threshold)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue