mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
NULL terrain for spectators
This commit is contained in:
parent
ef5a4f01d4
commit
211fc17974
1 changed files with 7 additions and 0 deletions
|
|
@ -344,6 +344,13 @@ void K_UpdateMobjTerrain(mobj_t *mo, INT32 flatID)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mo->player != NULL && mo->player->spectator == true)
|
||||||
|
{
|
||||||
|
// We don't want a terrain pointer for spectators.
|
||||||
|
mo->terrain = NULL;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Update the object's terrain pointer.
|
// Update the object's terrain pointer.
|
||||||
mo->terrain = K_GetTerrainForFlatNum(flatID);
|
mo->terrain = K_GetTerrainForFlatNum(flatID);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue