- moved bglobal into FLevelLocals

This is still all static data, only the location has changed, but none of the access.
This commit is contained in:
Christoph Oelckers 2019-01-30 01:38:18 +01:00
commit e30f116faf
20 changed files with 72 additions and 74 deletions

View file

@ -144,9 +144,9 @@ void DBot::Tick ()
}
BotThinkCycles.Clock();
bglobal.m_Thinking = true;
Level->BotInfo.m_Thinking = true;
Think ();
bglobal.m_Thinking = false;
Level->BotInfo.m_Thinking = false;
BotThinkCycles.Unclock();
}
@ -174,9 +174,9 @@ CCMD (addbot)
}
if (argv.argc() > 1)
bglobal.SpawnBot (argv[1]);
currentUILevel->BotInfo.SpawnBot (argv[1]);
else
bglobal.SpawnBot (nullptr);
currentUILevel->BotInfo.SpawnBot (nullptr);
}
void FCajunMaster::ClearPlayer (int i, bool keepTeam)
@ -233,7 +233,7 @@ CCMD (freeze)
CCMD (listbots)
{
botinfo_t *thebot = bglobal.botinfo;
botinfo_t *thebot = currentUILevel->BotInfo.botinfo;
int count = 0;
while (thebot)