Don't trigger thwomp on spectators

This commit is contained in:
Digiku 2018-09-13 11:30:00 -04:00 committed by mazmazz
parent c32c72c401
commit 89a6694d67

View file

@ -1960,7 +1960,8 @@ void T_ThwompSector(levelspecthink_t *thwomp)
continue;
mo = (mobj_t *)th;
if (mo->type == MT_PLAYER && mo->health && mo->z <= thwomp->sector->ceilingheight
if (mo->type == MT_PLAYER && mo->health && mo->player && !mo->player->spectator
&& mo->z <= thwomp->sector->ceilingheight
&& P_AproxDistance(thwompx - mo->x, thwompy - mo->y) <= 96*FRACUNIT)
{
thwomp->direction = -1;