- moved the per-level ACS state into FLevelLocals.
This commit is contained in:
parent
131eef9eb9
commit
7b235ea13e
18 changed files with 213 additions and 206 deletions
|
|
@ -92,6 +92,7 @@ Everything that is changed is marked (maybe commented) with "Added by MC"
|
|||
#include "d_player.h"
|
||||
#include "events.h"
|
||||
#include "vm.h"
|
||||
#include "g_levellocals.h"
|
||||
|
||||
static FRandom pr_botspawn ("BotSpawn");
|
||||
|
||||
|
|
@ -447,7 +448,7 @@ void FCajunMaster::RemoveAllBots (bool fromlist)
|
|||
// [ZZ] run event hook
|
||||
E_PlayerDisconnected(i);
|
||||
//
|
||||
FBehavior::StaticStartTypedScripts (SCRIPT_Disconnect, players[i].mo, true, i, true);
|
||||
level.Behaviors.StartTypedScripts (SCRIPT_Disconnect, players[i].mo, true, i, true);
|
||||
ClearPlayer (i, !fromlist);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue