mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
a47faff820
commit
366ade8cbb
2 changed files with 2 additions and 2 deletions
|
|
@ -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?
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue