mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 20:50:58 +00:00
Ok, now the MobjThinker Lua hook is neutralised properly as well.
This commit is contained in:
parent
7cb02985f4
commit
f0fd9f7656
1 changed files with 3 additions and 3 deletions
|
@ -7011,6 +7011,9 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
if (mobj->flags & MF_NOTHINK)
|
||||
return;
|
||||
|
||||
if ((mobj->flags & MF_BOSS) && mobj->spawnpoint && !(mobj->spawnpoint->extrainfo & ~15) && (bossdisabled & (1<<mobj->spawnpoint->extrainfo)))
|
||||
return;
|
||||
|
||||
// Remove dead target/tracer.
|
||||
if (mobj->target && P_MobjWasRemoved(mobj->target))
|
||||
P_SetTarget(&mobj->target, NULL);
|
||||
|
@ -7674,9 +7677,6 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
}
|
||||
else if (mobj->flags & MF_BOSS)
|
||||
{
|
||||
if (mobj->spawnpoint && (mobj->spawnpoint->extrainfo < 16) && (bossdisabled & (1<<mobj->spawnpoint->extrainfo)))
|
||||
return;
|
||||
|
||||
#ifdef HAVE_BLUA
|
||||
if (LUAh_BossThinker(mobj))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue