- Renamed FBot to DBot and made it inherit from DThinker.

- Fixed: Bots added by players other than the net arbitrator did not have their skill set.
This commit is contained in:
ChillyDoom 2014-10-14 19:57:11 +01:00
commit db323643f8
24 changed files with 356 additions and 327 deletions

View file

@ -978,19 +978,19 @@ void D_DoomLoop ()
int i;
for (i = 0; i < MAXPLAYERS; i++)
{
if (playeringame[i] && players[i].Bot.isbot && players[i].mo)
if (playeringame[i] && players[i].Bot != NULL && players[i].mo)
{
players[i].Bot.savedyaw = players[i].mo->angle;
players[i].Bot.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].Bot.isbot && players[i].mo)
if (playeringame[i] && players[i].Bot != NULL && players[i].mo)
{
players[i].mo->angle = players[i].Bot.savedyaw;
players[i].mo->pitch = players[i].Bot.savedpitch;
players[i].mo->angle = players[i].Bot->savedyaw;
players[i].mo->pitch = players[i].Bot->savedpitch;
}
}
if (advancedemo)