summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Swanson2014-10-19 12:48:02 -0700
committerMike Swanson2014-10-19 12:48:02 -0700
commitd88369c62e20083d42befda7e9ec9e1eac61ba71 (patch)
treeb8e3969c9e7bb504cda25300c5a39c56f85bd680
parentf8459dfd65a3b8aa0457c45516ace2db51d2845f (diff)
downloadchocolate-doom-d88369c62e20083d42befda7e9ec9e1eac61ba71.tar.gz
chocolate-doom-d88369c62e20083d42befda7e9ec9e1eac61ba71.tar.bz2
chocolate-doom-d88369c62e20083d42befda7e9ec9e1eac61ba71.zip
i_video: fix an if condition in my previous commit
`else if (f == 'w')` doesn't really secure itself against uninitialized memory, it still needs to test that `s == 3`.
-rw-r--r--src/i_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i_video.c b/src/i_video.c
index b7175db3..242f3ac5 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1714,7 +1714,7 @@ void I_GraphicsCheckCommandLine(void)
{
fullscreen = true;
}
- else if (f == 'w')
+ else if (s == 3 && f == 'w')
{
fullscreen = false;
}