Remove indents on #ifdefs and take K_drawInput in the hud_position check

This commit is contained in:
Latapostrophe 2018-11-03 22:24:45 +01:00
parent 1928dd86f1
commit e7f35307c9

View file

@ -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();
}
}