remove restriction on ctype in old console

(amended to not reindent whole file)
This commit is contained in:
jacob1
2012-08-10 20:37:18 +01:00
committed by jacksonmj
parent b3e393e162
commit 70dff3bb9a

View File

@@ -535,16 +535,16 @@ int process_command_old(pixel *vid_buf, char *console, char *console_error)
{ {
if (strcmp(console4, "all")==0) if (strcmp(console4, "all")==0)
{ {
if (console_parse_type(console5, &j, console_error)) j = atoi(console5);
for (i=0; i<NPART; i++) for (i=0; i<NPART; i++)
{ {
if (parts[i].type) if (parts[i].type)
parts[i].ctype = j; parts[i].ctype = j;
} }
} }
else if (console_parse_type(console4, &j, console_error) else if (console_parse_type(console4, &j, console_error))
&& console_parse_type(console5, &k, console_error))
{ {
k = atoi(console5);
for (i=0; i<NPART; i++) for (i=0; i<NPART; i++)
{ {
if (parts[i].type == j) if (parts[i].type == j)
@@ -553,9 +553,9 @@ int process_command_old(pixel *vid_buf, char *console, char *console_error)
} }
else else
{ {
if (console_parse_partref(console4, &i, console_error) if (console_parse_partref(console4, &i, console_error))
&& console_parse_type(console5, &j, console_error))
{ {
j = atoi(console5);
parts[i].ctype = j; parts[i].ctype = j;
} }
} }