From: havoc Date: Thu, 4 Mar 2004 02:11:03 +0000 (+0000) Subject: fix r_editlights_edit not accepting some commands X-Git-Tag: xonotic-v0.1.0preview~6040 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d16a6d0480b1258c69b6fdd80fdaadad1ab240d1;p=xonotic%2Fdarkplaces.git fix r_editlights_edit not accepting some commands git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3963 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index d9cb9690..5b5d53fd 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2941,7 +2941,7 @@ void R_Shadow_EditLights_Edit_f(void) } origin[2] += atof(Cmd_Argv(2)); } - if (!strcmp(Cmd_Argv(1), "angles")) + else if (!strcmp(Cmd_Argv(1), "angles")) { if (Cmd_Argc() != 5) { @@ -2999,7 +2999,7 @@ void R_Shadow_EditLights_Edit_f(void) } radius = atof(Cmd_Argv(2)); } - else if (Cmd_Argc() == 3 && !strcmp(Cmd_Argv(1), "style")) + else if (!strcmp(Cmd_Argv(1), "style")) { if (Cmd_Argc() != 3) { @@ -3008,7 +3008,7 @@ void R_Shadow_EditLights_Edit_f(void) } style = atoi(Cmd_Argv(2)); } - else if (Cmd_Argc() == 3 && !strcmp(Cmd_Argv(1), "cubemap")) + else if (!strcmp(Cmd_Argv(1), "cubemap")) { if (Cmd_Argc() > 3) { @@ -3020,7 +3020,7 @@ void R_Shadow_EditLights_Edit_f(void) else cubemapname[0] = 0; } - else if (Cmd_Argc() == 3 && !strcmp(Cmd_Argv(1), "shadows")) + else if (!strcmp(Cmd_Argv(1), "shadows")) { if (Cmd_Argc() != 3) {