mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 19:31:05 +00:00
Reset precip interpolation on snap to ceil
This commit is contained in:
parent
f2a881f385
commit
4c31902b98
1 changed files with 4 additions and 0 deletions
|
@ -4056,7 +4056,10 @@ void P_SnowThinker(precipmobj_t *mobj)
|
|||
|
||||
// adjust height
|
||||
if ((mobj->z += mobj->momz) <= mobj->floorz)
|
||||
{
|
||||
mobj->z = mobj->ceilingz;
|
||||
P_ResetPrecipitationInterpolationState(mobj);
|
||||
}
|
||||
}
|
||||
|
||||
void P_RainThinker(precipmobj_t *mobj)
|
||||
|
@ -4082,6 +4085,7 @@ void P_RainThinker(precipmobj_t *mobj)
|
|||
return;
|
||||
|
||||
mobj->z = mobj->ceilingz;
|
||||
P_ResetPrecipitationInterpolationState(mobj);
|
||||
P_SetPrecipMobjState(mobj, S_RAIN1);
|
||||
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue