mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-13 00:24:17 +00:00
Merge branch 'jetjaw-crash-fix' into 'next'
Jet Jaw crash fix Turns out not having MF_SHOOTABLE can cause the Jet Jaw to endlessly loop between the two states, until somehow LUA_CallAction inexplicably causes Z_StrDup to crash anyway (that one's a mystery to me, I'm not going to look into it right now). I tweaked A_JetJawChomp so this endless loop can't happen anymore. See merge request !176
This commit is contained in:
commit
7185455d6a
1 changed files with 1 additions and 1 deletions
|
@ -1102,7 +1102,7 @@ void A_JetJawChomp(mobj_t *actor)
|
|||
if (!actor->target || !(actor->target->flags & MF_SHOOTABLE)
|
||||
|| actor->target->health <= 0 || !P_CheckSight(actor, actor->target))
|
||||
{
|
||||
P_SetMobjState(actor, actor->info->spawnstate);
|
||||
P_SetMobjStateNF(actor, actor->info->spawnstate);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue