]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
check if command is "remap" AFTER command is set to something!
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Jun 2008 07:49:13 +0000 (07:49 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Jun 2008 07:49:13 +0000 (07:49 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8347 d7cf8633-e32d-0410-b094-e92efae38249

cd_shared.c

index 2f6dde38cbde98ed67dfd71e175ca0246ad127e8..aa33079dd2ea55710e50481907f3a85cb5918734 100644 (file)
@@ -257,14 +257,14 @@ static void CD_f (void)
        int ret;
        int n;
 
-       if (strcasecmp(command, "remap") != 0)
-               Host_StartVideo();
-
        if (Cmd_Argc() < 2)
                return;
 
        command = Cmd_Argv (1);
 
+       if (strcasecmp(command, "remap") != 0)
+               Host_StartVideo();
+
        if (strcasecmp(command, "on") == 0)
        {
                enabled = true;