mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-04 04:36:21 +00:00
Don't trigger thwomp on spectators
This commit is contained in:
parent
a7ec620ea4
commit
8f59606199
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue