]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
We didn't exit the "Reset to defaults" menu when answering "yes". Moved the "vertical...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 9 Mar 2005 13:05:29 +0000 (13:05 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 9 Mar 2005 13:05:29 +0000 (13:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5072 d7cf8633-e32d-0410-b094-e92efae38249

menu.c

diff --git a/menu.c b/menu.c
index 23596ac14bda56d463ba90ce605155814b3448fa..452565ce806e05893406f5d78e392e6afcb76839 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -2690,6 +2690,11 @@ void M_Reset_Key (int key, char ascii)
 {
        switch (key)
        {
+       case 'Y':
+       case 'y':
+               Cbuf_AddText ("exec default.cfg\n");
+               // no break here since we also exit the menu
+
        case K_ESCAPE:
        case 'n':
        case 'N':
@@ -2697,11 +2702,6 @@ void M_Reset_Key (int key, char ascii)
                m_entersound = true;
                break;
 
-       case 'Y':
-       case 'y':
-               Cbuf_AddText ("exec default.cfg\n");
-               break;
-
        default:
                break;
        }
@@ -2722,7 +2722,7 @@ void M_Reset_Draw (void)
 #define VIDEO_ITEMS 5
 
 int video_cursor = 0;
-int video_cursor_table[] = {56, 68, 80, 100, 120};
+int video_cursor_table[] = {56, 68, 80, 100, 130};
 // note: if modes are added to the beginning of this list, update the
 // video_resolution = x; in M_Menu_Video_f below
 unsigned short video_resolutions[][2] = {{320,240}, {400,300}, {512,384}, {640,480}, {800,600}, {1024,768}, {1152,864}, {1280,960}, {1280,1024}, {1600,1200}, {1792,1344}, {1920,1440}, {2048,1536}, {0,0}};