foxygit / doom Log in
commit d88369c62e20083d42befda7e9ec9e1eac61ba71
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Sun Oct 19 12:48:02 2014 -0700
Commit:     Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Sun Oct 19 12:48:02 2014 -0700

    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`.
---
 src/i_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
             }