- Moved bot related variables from player_t into a new FBot class.
This commit is contained in:
parent
952d03da7c
commit
83d84eaae9
20 changed files with 325 additions and 344 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue