- run disconnect scripts on the level the disconnected player is on

This is nearly always the primary one but let's keep the option of using bots on secondary levels.
This commit is contained in:
Christoph Oelckers 2019-01-30 00:47:34 +01:00
commit 3c0200de19
2 changed files with 12 additions and 11 deletions

View file

@ -447,8 +447,7 @@ void FCajunMaster::RemoveAllBots (FLevelLocals *Level, bool fromlist)
}
// [ZZ] run event hook
E_PlayerDisconnected(i);
//
level.Behaviors.StartTypedScripts (SCRIPT_Disconnect, players[i].mo, true, i, true);
Level->Behaviors.StartTypedScripts (SCRIPT_Disconnect, players[i].mo, true, i, true);
ClearPlayer (i, !fromlist);
}
}