Try to ensure this fix doesn't affect whatever might be using tracer

This commit is contained in:
Ashnal 2025-05-18 15:06:52 -04:00
parent 146f427dc2
commit 0956ff4de7

View file

@ -206,13 +206,19 @@ void Obj_playerWPZTurbine(player_t *p)
fixed_t momz;
if (!t || P_MobjWasRemoved(t) || t->type != MT_WATERPALACETURBINE || !t->spawnpoint || p->respawn.state != RESPAWNST_NONE)
if (!t || P_MobjWasRemoved(t) || p->respawn.state != RESPAWNST_NONE)
{
p->turbine = false;
P_SetTarget(&pmo->tracer, NULL);
return; // wtf happened
}
if (t->type != MT_WATERPALACETURBINE)
{
p->turbine = false;
return;
}
mt = t->spawnpoint;
opt1 = (mt->thing_args[0] != 0);