From 344bc8403b50ad75ca3d876430a4a87faf9f9f41 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 9 Feb 2004 05:21:04 +0000 Subject: [PATCH] fix video modes menu to not let you select the extra 0x0 mode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3880 d7cf8633-e32d-0410-b094-e92efae38249 --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.c b/menu.c index ba8600e6..2ce79c53 100644 --- 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; -- 2.39.2