diff options
author | Mike Swanson | 2014-10-19 12:48:02 -0700 |
---|---|---|
committer | Mike Swanson | 2014-10-19 12:48:02 -0700 |
commit | d88369c62e20083d42befda7e9ec9e1eac61ba71 (patch) | |
tree | b8e3969c9e7bb504cda25300c5a39c56f85bd680 | |
parent | f8459dfd65a3b8aa0457c45516ace2db51d2845f (diff) | |
download | chocolate-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.c | 2 |
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; } |