- Moved bot specific functions into DBot.

This commit is contained in:
ChillyDoom 2014-11-29 17:03:58 +00:00
commit e7da849f77
6 changed files with 335 additions and 351 deletions

View file

@ -66,7 +66,7 @@ void DBot::Serialize (FArchive &arc)
arc << savedyaw
<< savedpitch;
}
else if (SaveVersion >= 4516)
else
{
arc << player;
}
@ -105,7 +105,7 @@ void DBot::Tick ()
BotThinkCycles.Clock();
bglobal.m_Thinking = true;
bglobal.Think (player->mo, &netcmds[player - players][((gametic + 1)/ticdup)%BACKUPTICS]);
Think ();
bglobal.m_Thinking = false;
BotThinkCycles.Unclock();
}