mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Move where wonround is changed
Might avoid bots from being updated multiple times
This commit is contained in:
parent
241fb0db6c
commit
52d95d3cd7
1 changed files with 2 additions and 3 deletions
|
|
@ -2375,8 +2375,6 @@ static void P_LevelInitStuff(void)
|
||||||
|
|
||||||
memset(localaiming, 0, sizeof(localaiming));
|
memset(localaiming, 0, sizeof(localaiming));
|
||||||
|
|
||||||
grandprixinfo.wonround = false;
|
|
||||||
|
|
||||||
// special stage tokens, emeralds, and ring total
|
// special stage tokens, emeralds, and ring total
|
||||||
tokenbits = 0;
|
tokenbits = 0;
|
||||||
runemeraldmanager = false;
|
runemeraldmanager = false;
|
||||||
|
|
@ -3396,9 +3394,10 @@ boolean P_SetupLevel(boolean skipprecip)
|
||||||
K_InitGrandPrixBots();
|
K_InitGrandPrixBots();
|
||||||
grandprixinfo.initalize = false;
|
grandprixinfo.initalize = false;
|
||||||
}
|
}
|
||||||
else
|
else if (grandprixinfo.wonround == true)
|
||||||
{
|
{
|
||||||
K_UpdateGrandPrixBots();
|
K_UpdateGrandPrixBots();
|
||||||
|
grandprixinfo.wonround = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!modeattacking)
|
else if (!modeattacking)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue