- 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
|
|
@ -1330,7 +1330,7 @@ void WI_updateDeathmatchStats ()
|
|||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
// If the player is in the game and not ready, stop checking
|
||||
if (playeringame[i] && !players[i].Bot.isbot && !playerready[i])
|
||||
if (playeringame[i] && players[i].Bot == NULL && !playerready[i])
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -1429,7 +1429,7 @@ void WI_drawDeathmatchStats ()
|
|||
clamp(int(g*255.f), 0, 255),
|
||||
clamp(int(b*255.f), 0, 255)), 0.8f, x, y - ypadding, (deaths_x - x) + (8 * CleanXfac), lineheight);
|
||||
|
||||
if (playerready[pnum] || player->Bot.isbot) // Bots are automatically assumed ready, to prevent confusion
|
||||
if (playerready[pnum] || player->Bot != NULL) // Bots are automatically assumed ready, to prevent confusion
|
||||
screen->DrawTexture(readyico, x - (readyico->GetWidth() * CleanXfac), y, DTA_CleanNoMove, true, TAG_DONE);
|
||||
|
||||
color = (EColorRange)HU_GetRowColor(player, pnum == consoleplayer);
|
||||
|
|
@ -1638,7 +1638,7 @@ void WI_updateNetgameStats ()
|
|||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
// If the player is in the game and not ready, stop checking
|
||||
if (playeringame[i] && !players[i].Bot.isbot && !playerready[i])
|
||||
if (playeringame[i] && players[i].Bot == NULL && !playerready[i])
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -1735,7 +1735,7 @@ void WI_drawNetgameStats ()
|
|||
clamp(int(g*255.f), 0, 255),
|
||||
clamp(int(b*255.f), 0, 255)), 0.8f, x, y - ypadding, (secret_x - x) + (8 * CleanXfac), lineheight);
|
||||
|
||||
if (playerready[i] || player->Bot.isbot) // Bots are automatically assumed ready, to prevent confusion
|
||||
if (playerready[i] || player->Bot != NULL) // Bots are automatically assumed ready, to prevent confusion
|
||||
screen->DrawTexture(readyico, x - (readyico->GetWidth() * CleanXfac), y, DTA_CleanNoMove, true, TAG_DONE);
|
||||
|
||||
color = (EColorRange)HU_GetRowColor(player, i == consoleplayer);
|
||||
|
|
@ -2010,7 +2010,7 @@ void WI_checkForAccelerate(void)
|
|||
{
|
||||
if ((player->cmd.ucmd.buttons ^ player->oldbuttons) &&
|
||||
((players[i].cmd.ucmd.buttons & players[i].oldbuttons)
|
||||
== players[i].oldbuttons) && !player->Bot.isbot)
|
||||
== players[i].oldbuttons) && player->Bot == NULL)
|
||||
{
|
||||
acceleratestage = 1;
|
||||
playerready[i] = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue