mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-21 19:31:26 +00:00
Check against null tmpusher source before attempting to push a thing.
This commit is contained in:
parent
d380405b2f
commit
12205314bc
1 changed files with 3 additions and 0 deletions
|
@ -8458,6 +8458,9 @@ static inline boolean PIT_PushThing(mobj_t *thing)
|
|||
if (thing->player && thing->player->powers[pw_carry] == CR_ROPEHANG)
|
||||
return false;
|
||||
|
||||
if (!tmpusher->source)
|
||||
return false;
|
||||
|
||||
// Allow this to affect pushable objects at some point?
|
||||
if (thing->player && (!(thing->flags & (MF_NOGRAVITY | MF_NOCLIP)) || thing->player->powers[pw_carry] == CR_NIGHTSMODE))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue