mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-16 01:31:26 +00:00
Don't trigger thwomp on spectators
This commit is contained in:
parent
c32c72c401
commit
89a6694d67
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…
Reference in a new issue