mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-19 07:51:43 +00:00
Forgot to hardcode the mobj.valid checks
This commit is contained in:
parent
6a46fc76b8
commit
fae4dc3f21
1 changed files with 2 additions and 2 deletions
|
@ -2353,7 +2353,7 @@ void A_VultureHover(mobj_t *actor)
|
|||
return;
|
||||
#endif
|
||||
|
||||
if (!actor->target)
|
||||
if (!actor->target || P_MobjWasRemoved(actor->target))
|
||||
{
|
||||
P_SetMobjState(actor, actor->info->spawnstate);
|
||||
return;
|
||||
|
@ -12897,7 +12897,7 @@ void A_DustDevilThink(mobj_t *actor)
|
|||
#endif
|
||||
|
||||
//Chained thinker for the spiralling dust column.
|
||||
while (layer) {
|
||||
while (layer && !P_MobjWasRemoved(layer)) {
|
||||
angle_t fa = layer->angle >> ANGLETOFINESHIFT;
|
||||
P_TeleportMove(layer, layer->x + 5 * FixedMul(scale, FINECOSINE(fa)), layer->y + 5 * FixedMul(scale, FINESINE(fa)), layer->z);
|
||||
layer->scale = scale;
|
||||
|
|
Loading…
Reference in a new issue