mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-10 10:02:41 +00:00
Completely stop when there's no targets possible
(if'd out self-destruct code too)
This commit is contained in:
parent
f559487527
commit
5df0a3f472
1 changed files with 14 additions and 0 deletions
|
|
@ -8442,7 +8442,21 @@ void A_SPBChase(mobj_t *actor)
|
||||||
|
|
||||||
// No one there?
|
// No one there?
|
||||||
if (player == NULL || !player->mo)
|
if (player == NULL || !player->mo)
|
||||||
|
{
|
||||||
|
#if 0
|
||||||
|
// SELF-DESTRUCT?
|
||||||
|
mobj_t *spbexplode;
|
||||||
|
|
||||||
|
S_StopSound(actor); // Don't continue playing the gurgle or the siren
|
||||||
|
spbexplode = P_SpawnMobj(actor->x, actor->y, actor->z, MT_SPBEXPLOSION);
|
||||||
|
P_SetTarget(&spbexplode->target, actor->target);
|
||||||
|
|
||||||
|
P_RemoveMobj(actor);
|
||||||
|
#else
|
||||||
|
actor->momx = actor->momy = actor->momz = 0;
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Found someone, now get close enough to initiate the slaughter...
|
// Found someone, now get close enough to initiate the slaughter...
|
||||||
P_SetTarget(&actor->tracer, player->mo);
|
P_SetTarget(&actor->tracer, player->mo);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue