diff --git a/src/k_kart.c b/src/k_kart.c index 999998583..e6a723c5b 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -10496,12 +10496,16 @@ void K_drawKartHUD(void) #ifdef HAVE_BLUA if (LUA_HudEnabled(hud_item) && !freecam) #endif - K_drawKartItem(); - - + K_drawKartItem(); + if (cv_driftgauge.value && !modeattacking) + { +#ifdef HAVE_BLUA + if (LUA_HudEnabled(hud_driftgauge)) +#endif K_drawDriftGauge(); - + } + if (cv_nametag.value) { #ifdef HAVE_BLUA diff --git a/src/lua_hud.h b/src/lua_hud.h index 19edfab77..d0fec7f1e 100644 --- a/src/lua_hud.h +++ b/src/lua_hud.h @@ -33,6 +33,7 @@ enum hud { hud_speedometer, hud_statdisplay, hud_nametags, + hud_driftgauge, hud_freeplay, hud_rankings, // Tab rankings diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c index 16363a2d3..de75aec20 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -57,6 +57,7 @@ static const char *const hud_disable_options[] = { "speedometer", "statdisplay", "nametags", + "driftgauge", "freeplay", "rankings", NULL};