]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/menu.qc
Merge branch 'master' into TimePath/experiments/csqc_prediction (blame TimePath if...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / menu.qc
index cc951d0d5898687db885633faa44b1f11a8ae63b..85aa3a640e319a055b56926f053ec58d72c12558 100644 (file)
@@ -53,8 +53,6 @@ void m_init()
        prvm_language = strzone(prvm_language);
        cvar_set("_menu_prvm_language", prvm_language);
 
-       check_unacceptable_compiler_bugs();
-
 #ifdef WATERMARK
        dprintf("^4MQC Build information: ^1%s\n", WATERMARK);
 #endif
@@ -94,8 +92,6 @@ void m_init()
                cvar_set("_menu_initialized", "1");
        }
 
-       //PlayerInfo_Details();
-       PlayerStats_PlayerDetail_CheckUpdate();
 }
 
 const float MENU_ASPECT = 1.25; // 1280x1024
@@ -1005,3 +1001,20 @@ void m_goto(string itemname)
                }
        }
 }
+
+float menuLastFocusSoundTime;
+void m_play_focus_sound()
+{
+       if(cvar("menu_sounds") > 1)
+               if(time - menuLastFocusSoundTime > 0.25)
+               {
+                       localsound(MENU_SOUND_FOCUS);
+                       menuLastFocusSoundTime = time;
+               }
+}
+
+void m_play_click_sound(string soundfile)
+{
+       if(cvar("menu_sounds"))
+               localsound(soundfile);
+}