- sanitized the 'frozen level' code.
This had two different flags that were checked totally inconsistently, and one was not even saved. Moved everything into a few subfunctions so that these checks do not have to be scattered all over the code.
This commit is contained in:
parent
3721771934
commit
259ae41774
25 changed files with 124 additions and 65 deletions
|
|
@ -129,7 +129,7 @@ FCajunMaster::~FCajunMaster()
|
|||
}
|
||||
|
||||
//This function is called every tick (from g_game.c).
|
||||
void FCajunMaster::Main ()
|
||||
void FCajunMaster::Main(FLevelLocals *Level)
|
||||
{
|
||||
BotThinkCycles.Reset();
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ void FCajunMaster::Main ()
|
|||
return;
|
||||
|
||||
//Add new bots?
|
||||
if (wanted_botnum > botnum && !freeze)
|
||||
if (wanted_botnum > botnum && !Level->isFrozen())
|
||||
{
|
||||
if (t_join == ((wanted_botnum - botnum) * SPAWN_DELAY))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue