]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/Main.qc
Allow multiple gfx/hud/ subfolders and a cvar to choose which is in use
[voretournament/voretournament.git] / data / qcsrc / client / Main.qc
index b3aeb438617715a115e8a98ca6539804d230f692..b1ae0350a9ad380178e563b96f6ebedfb3bc6c8e 100644 (file)
@@ -176,9 +176,10 @@ void CSQC_Init(void)
                else\r
                        get_mi_min_max_texcoords(0); // load new texcoords\r
        }\r
-       precache_pic("gfx/hud/bg_radar.tga");\r
-       precache_pic("gfx/hud/fg_radar.tga");\r
-       precache_pic("gfx/hud/fg_radar_team.tga");\r
+\r
+       precache_pic(strcat("gfx/hud/", cvar_string("hud_style"), "/bg_radar.tga"));\r
+       precache_pic(strcat("gfx/hud/", cvar_string("hud_style"), "/fg_radar.tga"));\r
+       precache_pic(strcat("gfx/hud/", cvar_string("hud_style"), "/fg_radar_team.tga"));\r
 \r
        mi_center = (mi_min + mi_max) * 0.5;\r
        mi_scale = mi_max - mi_min;\r