Falling rocks only collide with players and other rocks

This commit is contained in:
TehRealSalt committed 2018-10-22 15:08:04 -04:00
1 parent 9e4937d07f
commit 9cd47643df
1 file changed
+2 -1
+2 -1
View File
@@ -1077,7 +1077,8 @@ static boolean PIT_CheckThing(mobj_t *thing)
//}
if (thing->type == MT_FALLINGROCK || tmthing->type == MT_FALLINGROCK)
if ((thing->type == MT_FALLINGROCK && (tmthing->player || tmthing->type == MT_FALLINGROCK))
|| (tmthing->type == MT_FALLINGROCK && (thing->player || thing->type == MT_FALLINGROCK)))
{
// see if it went over / under
if (tmthing->z > thing->z + thing->height)