mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-18 11:32:24 +00:00
Ok, now the MobjThinker Lua hook is neutralised properly as well.
This commit is contained in:
parent
43ce434ebf
commit
25cabbfb37
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…
Add table
Reference in a new issue