From: havoc Date: Mon, 9 Jun 2008 07:49:13 +0000 (+0000) Subject: check if command is "remap" AFTER command is set to something! X-Git-Tag: xonotic-v0.1.0preview~2218 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=787d5b0509df491c7d4c1b30f205735323d81013;p=xonotic%2Fdarkplaces.git check if command is "remap" AFTER command is set to something! git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8347 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cd_shared.c b/cd_shared.c index 2f6dde38..aa33079d 100644 --- a/cd_shared.c +++ b/cd_shared.c @@ -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;