Merge branch 'if-crash-dont' into 'master'

P_CheckPosition: If thing was removed in its remit and iteration has MF_NOCLIP, do not return true

See merge request KartKrew/Kart!1172
This commit is contained in:
toaster 2023-04-14 20:00:15 +00:00
commit 819d956085

View file

@ -2232,7 +2232,8 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y, TryMoveResult_t *re
// with MF_NOCLIP enabled, but they won't be blocked
// regardless of the result. This allows for SPBs and
// the UFO to collide.
return true;
// ...but be careful about removed obj! ~toast 140423
return !P_MobjWasRemoved(thing);
}
validcount++;