Bots don't use items while exiting anymore

They'll just hold onto 'em now. Makes the post-exit movement a bit more seamless.
This commit is contained in:
Sally Coolatta 2022-11-27 03:45:45 -05:00
parent a47faff820
commit 366ade8cbb
2 changed files with 2 additions and 2 deletions

View file

@ -1452,7 +1452,7 @@ void K_BuildBotTiccmd(player_t *player, ticcmd_t *cmd)
} }
} }
if (spindash == 0) if (spindash == 0 && player->exiting == 0)
{ {
// Don't pointlessly try to use rings/sneakers while charging a spindash. // Don't pointlessly try to use rings/sneakers while charging a spindash.
// TODO: Allowing projectile items like orbinaut while e-braking would be nice, maybe just pass in the spindash variable? // TODO: Allowing projectile items like orbinaut while e-braking would be nice, maybe just pass in the spindash variable?

View file

@ -1322,7 +1322,7 @@ void K_BotItemUsage(player_t *player, ticcmd_t *cmd, INT16 turnamt)
{ {
// Use rings! // Use rings!
if (leveltime > starttime && !player->exiting) if (leveltime > starttime)
{ {
K_BotItemRings(player, cmd); K_BotItemRings(player, cmd);
} }