- Moved bot related variables from player_t into a new FBot class.

This commit is contained in:
ChillyDoom 2014-10-13 18:40:25 +01:00
commit 83d84eaae9
20 changed files with 325 additions and 344 deletions

View file

@ -978,19 +978,19 @@ void D_DoomLoop ()
int i;
for (i = 0; i < MAXPLAYERS; i++)
{
if (playeringame[i] && players[i].isbot && players[i].mo)
if (playeringame[i] && players[i].Bot.isbot && players[i].mo)
{
players[i].savedyaw = players[i].mo->angle;
players[i].savedpitch = players[i].mo->pitch;
players[i].Bot.savedyaw = players[i].mo->angle;
players[i].Bot.savedpitch = players[i].mo->pitch;
}
}
bglobal.Main (maketic%BACKUPTICS);
for (i = 0; i < MAXPLAYERS; i++)
{
if (playeringame[i] && players[i].isbot && players[i].mo)
if (playeringame[i] && players[i].Bot.isbot && players[i].mo)
{
players[i].mo->angle = players[i].savedyaw;
players[i].mo->pitch = players[i].savedpitch;
players[i].mo->angle = players[i].Bot.savedyaw;
players[i].mo->pitch = players[i].Bot.savedpitch;
}
}
if (advancedemo)