]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add focus sound to menu sound constants
authorSeverin Meyer <sev.ch@web.de>
Fri, 23 Jan 2015 23:55:25 +0000 (00:55 +0100)
committerSeverin Meyer <sev.ch@web.de>
Fri, 23 Jan 2015 23:55:25 +0000 (00:55 +0100)
qcsrc/menu/menu.qc
qcsrc/menu/menu.qh

index c867477f7858726e0691a1ce0aa1dcc931a4f79e..85aa3a640e319a055b56926f053ec58d72c12558 100644 (file)
@@ -1008,7 +1008,7 @@ void m_play_focus_sound()
        if(cvar("menu_sounds") > 1)
                if(time - menuLastFocusSoundTime > 0.25)
                {
-                       localsound("sound/menu/focus.wav");
+                       localsound(MENU_SOUND_FOCUS);
                        menuLastFocusSoundTime = time;
                }
 }
index 46d384cb9f5eccb71956b41a9923a00672bd5b60..6f36a074e05311361c71b174afa796a03adeb02b 100644 (file)
@@ -44,6 +44,7 @@ void m_sync();
 const string MENU_SOUND_CLEAR   = "sound/menu/clear.wav";
 const string MENU_SOUND_CLOSE   = "sound/menu/close.wav";
 const string MENU_SOUND_EXECUTE = "sound/menu/execute.wav";
+const string MENU_SOUND_FOCUS   = "sound/menu/focus.wav";
 const string MENU_SOUND_OPEN    = "sound/menu/open.wav";
 const string MENU_SOUND_SELECT  = "sound/menu/select.wav";
 const string MENU_SOUND_SLIDE   = "sound/menu/slide.wav";