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
59
src/k_kart.c
59
src/k_kart.c
|
@ -8336,6 +8336,7 @@ static void K_drawCheckpointDebugger(void)
|
||||||
void K_drawKartHUD(void)
|
void K_drawKartHUD(void)
|
||||||
{
|
{
|
||||||
boolean isfreeplay = false;
|
boolean isfreeplay = false;
|
||||||
|
boolean battlefullscreen = false;
|
||||||
|
|
||||||
// Define the X and Y for each drawn object
|
// Define the X and Y for each drawn object
|
||||||
// This is handled by console/menu values
|
// This is handled by console/menu values
|
||||||
|
@ -8355,42 +8356,42 @@ void K_drawKartHUD(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((G_BattleGametype())
|
battlefullscreen = ((G_BattleGametype())
|
||||||
&& (stplyr->exiting
|
&& (stplyr->exiting
|
||||||
|| (stplyr->kartstuff[k_bumper] <= 0
|
|| (stplyr->kartstuff[k_bumper] <= 0
|
||||||
&& stplyr->kartstuff[k_comebacktimer]
|
&& stplyr->kartstuff[k_comebacktimer]
|
||||||
&& comeback
|
&& comeback
|
||||||
&& stplyr->playerstate == PST_LIVE)))
|
&& 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();
|
||||||
|
|
||||||
|
// Draw WANTED status
|
||||||
|
if (G_BattleGametype())
|
||||||
|
{
|
||||||
|
#ifdef HAVE_BLUA
|
||||||
|
if (LUA_HudEnabled(hud_wanted))
|
||||||
|
#endif
|
||||||
|
K_drawKartWanted();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cv_kartminimap.value && !titledemo)
|
||||||
|
{
|
||||||
|
#ifdef HAVE_BLUA
|
||||||
|
if (LUA_HudEnabled(hud_minimap))
|
||||||
|
#endif
|
||||||
|
K_drawKartMinimap();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (battlefullscreen)
|
||||||
{
|
{
|
||||||
K_drawBattleFullscreen();
|
K_drawBattleFullscreen();
|
||||||
if (!splitscreen)
|
|
||||||
return;
|
|
||||||
isfreeplay = true; // variable reuse, since isfreeplay will not be otherwise set until after everything we want to happen
|
|
||||||
}
|
|
||||||
|
|
||||||
// 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();
|
|
||||||
|
|
||||||
// Draw WANTED status
|
|
||||||
if (G_BattleGametype())
|
|
||||||
{
|
|
||||||
#ifdef HAVE_BLUA
|
|
||||||
if (LUA_HudEnabled(hud_wanted))
|
|
||||||
#endif
|
|
||||||
K_drawKartWanted();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cv_kartminimap.value && !titledemo)
|
|
||||||
{
|
|
||||||
#ifdef HAVE_BLUA
|
|
||||||
if (LUA_HudEnabled(hud_minimap))
|
|
||||||
#endif
|
|
||||||
K_drawKartMinimap();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isfreeplay)
|
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Draw the item window
|
// Draw the item window
|
||||||
#ifdef HAVE_BLUA
|
#ifdef HAVE_BLUA
|
||||||
|
|
Loading…
Reference in a new issue