mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix precipitation not working
This commit is contained in:
parent
efaf2c8c7d
commit
9042f31dc3
1 changed files with 11 additions and 11 deletions
22
src/p_mobj.c
22
src/p_mobj.c
|
|
@ -3592,19 +3592,19 @@ void P_PrecipThinker(precipmobj_t *mobj)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// adjust height
|
// adjust height
|
||||||
if ((mobj->z += mobj->momz) > mobj->floorz)
|
if ((mobj->z += mobj->momz) <= mobj->floorz)
|
||||||
return;
|
|
||||||
|
|
||||||
// no splashes on sky or bottomless pits
|
|
||||||
if (mobj->precipflags & PCF_PIT)
|
|
||||||
{
|
{
|
||||||
mobj->z = mobj->ceilingz;
|
if ((mobj->info->deathstate == S_NULL) || (mobj->precipflags & PCF_PIT)) // no splashes on sky or bottomless pits
|
||||||
return;
|
{
|
||||||
|
mobj->z = mobj->ceilingz;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
P_SetPrecipMobjState(mobj, mobj->info->deathstate);
|
||||||
|
mobj->z = mobj->floorz;
|
||||||
|
mobj->precipflags |= PCF_SPLASH;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mobj->z = mobj->floorz;
|
|
||||||
P_SetPrecipMobjState(mobj, mobj->info->deathstate);
|
|
||||||
mobj->precipflags |= PCF_SPLASH;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void P_RingThinker(mobj_t *mobj)
|
static void P_RingThinker(mobj_t *mobj)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue