Add a mutator hook to indicate whether the physics HUD panel should be shown when...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / race / cl_race.qc
index ee90914..cb5e647 100644 (file)
@@ -145,3 +145,10 @@ void HUD_Mod_Race(vector pos, vector mySize)
                strfree(race_status_name_prev);
        }
 }
+
+REGISTER_MUTATOR(cl_race, true);
+
+MUTATOR_HOOKFUNCTION(cl_race, HUD_Physics_showoptional)
+{
+       return ISGAMETYPE(RACE); // show the optional physics panel
+}