- 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:
parent
83d84eaae9
commit
db323643f8
24 changed files with 356 additions and 327 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue