(map): Simplify loop control.
This commit is contained in:
parent
bddb20c7f0
commit
be78c807e3
1 changed files with 1 additions and 3 deletions
|
@ -101,8 +101,7 @@ map(void)
|
||||||
if (unit_map(unit_type, i, &ns, &origin))
|
if (unit_map(unit_type, i, &ns, &origin))
|
||||||
return RET_FAIL;
|
return RET_FAIL;
|
||||||
}
|
}
|
||||||
b = player->argp[2];
|
for (b = player->argp[2]; b && *b; b++) {
|
||||||
while (b != (s_char *)0 && (*b)) {
|
|
||||||
switch (*b) {
|
switch (*b) {
|
||||||
case 's':
|
case 's':
|
||||||
case 'S':
|
case 'S':
|
||||||
|
@ -140,7 +139,6 @@ map(void)
|
||||||
pr("Bad flag %c!\n", *b);
|
pr("Bad flag %c!\n", *b);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
b++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return draw_map(bmap, origin, map_flags, &ns);
|
return draw_map(bmap, origin, map_flags, &ns);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue