From 6bdd11533c78c9c7dc04305fa0072c9a7c98156c Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Fri, 1 Apr 2022 21:48:28 -0400 Subject: [PATCH] Don't replace bots on the final race. --- src/k_grandprix.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/k_grandprix.c b/src/k_grandprix.c index be29dbad3..332224479 100644 --- a/src/k_grandprix.c +++ b/src/k_grandprix.c @@ -528,6 +528,12 @@ void K_ReplaceBot(player_t *bot) UINT8 i; + if (grandprixinfo.gp == true && grandprixinfo.roundnum >= grandprixinfo.cup->numlevels) + { + // Was last map, no replacement. + return; + } + // init usable bot skins list for (i = 0; i < MAXSKINS; i++) { @@ -582,7 +588,7 @@ void K_ReplaceBot(player_t *bot) else { const UINT8 startingdifficulty = K_BotStartingDifficulty(grandprixinfo.gamespeed); - newDifficulty = startingdifficulty - 3 + (grandprixinfo.roundnum - 1); + newDifficulty = startingdifficulty - 4 + grandprixinfo.roundnum; } if (newDifficulty > MAXBOTDIFFICULTY)