From 52d95d3cd71ec9d8aa8590d02c6e5a14aee97aa6 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sat, 6 Jun 2020 23:51:32 -0400 Subject: [PATCH] Move where wonround is changed Might avoid bots from being updated multiple times --- src/p_setup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/p_setup.c b/src/p_setup.c index e9a25dd84..655b667fd 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -2375,8 +2375,6 @@ static void P_LevelInitStuff(void) memset(localaiming, 0, sizeof(localaiming)); - grandprixinfo.wonround = false; - // special stage tokens, emeralds, and ring total tokenbits = 0; runemeraldmanager = false; @@ -3396,9 +3394,10 @@ boolean P_SetupLevel(boolean skipprecip) K_InitGrandPrixBots(); grandprixinfo.initalize = false; } - else + else if (grandprixinfo.wonround == true) { K_UpdateGrandPrixBots(); + grandprixinfo.wonround = false; } } else if (!modeattacking)