mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 13:21:31 +00:00
Change order of operations so that fullscreen stuff is done in front of minimap, to match other two/three players in 3/4p.
This commit is contained in:
parent
503e4f977f
commit
55bb82eae8
1 changed files with 30 additions and 29 deletions
19
src/k_kart.c
19
src/k_kart.c
|
@ -8336,6 +8336,7 @@ static void K_drawCheckpointDebugger(void)
|
|||
void K_drawKartHUD(void)
|
||||
{
|
||||
boolean isfreeplay = false;
|
||||
boolean battlefullscreen = false;
|
||||
|
||||
// Define the X and Y for each drawn object
|
||||
// This is handled by console/menu values
|
||||
|
@ -8355,19 +8356,15 @@ void K_drawKartHUD(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if ((G_BattleGametype())
|
||||
battlefullscreen = ((G_BattleGametype())
|
||||
&& (stplyr->exiting
|
||||
|| (stplyr->kartstuff[k_bumper] <= 0
|
||||
&& stplyr->kartstuff[k_comebacktimer]
|
||||
&& comeback
|
||||
&& stplyr->playerstate == PST_LIVE)))
|
||||
{
|
||||
K_drawBattleFullscreen();
|
||||
if (!splitscreen)
|
||||
return;
|
||||
isfreeplay = true; // variable reuse, since isfreeplay will not be otherwise set until after everything we want to happen
|
||||
}
|
||||
&& stplyr->playerstate == PST_LIVE)));
|
||||
|
||||
if (!battlefullscreen || splitscreen)
|
||||
{
|
||||
// Draw the CHECK indicator before the other items, so it's overlapped by everything else
|
||||
if (cv_kartcheck.value && !splitscreen && !players[displayplayer].exiting)
|
||||
K_drawKartPlayerCheck();
|
||||
|
@ -8388,9 +8385,13 @@ void K_drawKartHUD(void)
|
|||
#endif
|
||||
K_drawKartMinimap();
|
||||
}
|
||||
}
|
||||
|
||||
if (isfreeplay)
|
||||
if (battlefullscreen)
|
||||
{
|
||||
K_drawBattleFullscreen();
|
||||
return;
|
||||
}
|
||||
|
||||
// Draw the item window
|
||||
#ifdef HAVE_BLUA
|
||||
|
|
Loading…
Reference in a new issue