mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-03-20 09:51:54 +00:00
Completely stop when there's no targets possible
(if'd out self-destruct code too)
This commit is contained in:
parent
f8fc6862b5
commit
8ab8df6789
1 changed files with 14 additions and 0 deletions
|
@ -8442,7 +8442,21 @@ void A_SPBChase(mobj_t *actor)
|
|||
|
||||
// No one there?
|
||||
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;
|
||||
}
|
||||
|
||||
// Found someone, now get close enough to initiate the slaughter...
|
||||
P_SetTarget(&actor->tracer, player->mo);
|
||||
|
|
Loading…
Reference in a new issue