mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-03 20:26:05 +00:00
Fix turbine crash if tracer is set to a different mobj type or lacking spawnpoint info
This commit is contained in:
parent
bdc6318cd4
commit
1350078282
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ void Obj_playerWPZTurbine(player_t *p)
|
|||
fixed_t momz;
|
||||
|
||||
|
||||
if (!t || P_MobjWasRemoved(t) || p->respawn.state != RESPAWNST_NONE)
|
||||
if (!t || P_MobjWasRemoved(t) || t->type != MT_WATERPALACETURBINE || !t->spawnpoint || p->respawn.state != RESPAWNST_NONE)
|
||||
{
|
||||
p->turbine = false;
|
||||
P_SetTarget(&pmo->tracer, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue