Correctly restrict MF_NOCLIPTHING-objects from being interacted with from both moving and non-moving side.

This commit is contained in:
toaster 2019-09-25 15:49:37 +01:00
parent 9504d078e4
commit 313fed2a59
1 changed files with 1 additions and 1 deletions

View File

@ -746,7 +746,7 @@ static boolean PIT_CheckThing(mobj_t *thing)
return true;
}
if (!(thing->flags & (MF_SOLID|MF_SPECIAL|MF_PAIN|MF_SHOOTABLE|MF_SPRING)))
if ((thing->flags & MF_NOCLIPTHING) || !(thing->flags & (MF_SOLID|MF_SPECIAL|MF_PAIN|MF_SHOOTABLE|MF_SPRING)))
return true;
// Don't collide with your buddies while NiGHTS-flying.