mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 21:01:04 +00:00
Remove indents on #ifdefs and take K_drawInput in the hud_position check
This commit is contained in:
parent
1928dd86f1
commit
e7f35307c9
1 changed files with 29 additions and 21 deletions
12
src/k_kart.c
12
src/k_kart.c
|
@ -6433,6 +6433,11 @@ static boolean K_drawKartPositionFaces(void)
|
|||
if (numplayersingame <= 1)
|
||||
return true;
|
||||
|
||||
#ifdef HAVE_BLUA
|
||||
if (!LUA_HudEnabled(hud_minirankings))
|
||||
return false; // Don't proceed but still return true for free play above if HUD is disabled.
|
||||
#endif
|
||||
|
||||
for (j = 0; j < numplayersingame; j++)
|
||||
{
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
|
@ -7611,9 +7616,9 @@ void K_drawKartHUD(void)
|
|||
if (!modeattacking)
|
||||
{
|
||||
// The top-four faces on the left
|
||||
#ifdef HAVE_BLUA
|
||||
/*#ifdef HAVE_BLUA
|
||||
if (LUA_HudEnabled(hud_minirankings))
|
||||
#endif
|
||||
#endif*/
|
||||
isfreeplay = K_drawKartPositionFaces();
|
||||
}
|
||||
}
|
||||
|
@ -7651,6 +7656,9 @@ void K_drawKartHUD(void)
|
|||
else //if (!(demoplayback && hu_showscores))
|
||||
{
|
||||
// Draw the input UI
|
||||
#ifdef HAVE_BLUA
|
||||
if (LUA_HudEnabled(hud_position))
|
||||
#endif
|
||||
K_drawInput();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue