]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/languagelist.qc
Merge branch 'master' into Mario/qc_updates
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / languagelist.qc
index 5345e631335ad9cbe1842409c6265b9db6db2ae4..8aa0d2c077dd4efde44e0b94d249ba0512fc58ea 100644 (file)
@@ -64,7 +64,7 @@ void XonoticLanguageList_drawListBoxItem(entity me, float i, vector absSize, flo
        s = me.languageParameter(me, i, LANGPARM_NAME_LOCALIZED);
 
        vector save_fontscale = draw_fontscale;
-       float f = draw_CondensedFontFactor(s, FALSE, me.realFontSize, 1);
+       float f = draw_CondensedFontFactor(s, false, me.realFontSize, 1);
        draw_fontscale.x *= f;
        vector fs = me.realFontSize;
        fs.x *= f;
@@ -75,7 +75,7 @@ void XonoticLanguageList_drawListBoxItem(entity me, float i, vector absSize, flo
        if(p != "")
        {
                vector save_fontscale = draw_fontscale;
-               float f = draw_CondensedFontFactor(p, FALSE, me.realFontSize, 1);
+               float f = draw_CondensedFontFactor(p, false, me.realFontSize, 1);
                draw_fontscale.x *= f;
                vector fs = me.realFontSize;
                fs.x *= f;
@@ -140,12 +140,15 @@ void XonoticLanguageList_saveCvars(entity me)
 
 void XonoticLanguageList_doubleClickListBoxItem(entity me, float i, vector where)
 {
+       m_play_click_sound(MENU_SOUND_EXECUTE);
        me.setLanguage(me);
 }
 
 float XonoticLanguageList_keyDown(entity me, float scan, float ascii, float shift)
 {
-       if(scan == K_ENTER || scan == K_KP_ENTER) {
+       if(scan == K_ENTER || scan == K_KP_ENTER)
+       {
+               m_play_click_sound(MENU_SOUND_EXECUTE);
                me.setLanguage(me);
                return 1;
        }