]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix video modes menu to not let you select the extra 0x0 mode
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Feb 2004 05:21:04 +0000 (05:21 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Feb 2004 05:21:04 +0000 (05:21 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3880 d7cf8633-e32d-0410-b094-e92efae38249

menu.c

diff --git a/menu.c b/menu.c
index ba8600e6400b0b4064f9d1df5976c6f4572e0c86..2ce79c538dc517766ddcf9dfb22c8385694c236a 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -2235,7 +2235,7 @@ void M_Menu_Video_AdjustSliders (int dir)
                        int new_resolution = video_resolution + dir;
                        if (gamemode == GAME_FNIGGIUM ? new_resolution < VID_640 : new_resolution < 0)
                                video_resolution = VID_RES_COUNT - 1;
-                       else if (new_resolution > VID_RES_COUNT)
+                       else if (new_resolution > VID_RES_COUNT - 1)
                                video_resolution = gamemode == GAME_FNIGGIUM ? VID_640 : 0;
                        else
                                video_resolution = new_resolution;