From f99bc9298a13d6aee2608d6bcdd8348b36907ff8 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 27 Mar 2006 19:24:44 +0000 Subject: [PATCH] (map): Simplify slightly. --- src/lib/commands/map.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/commands/map.c b/src/lib/commands/map.c index ce065ad2..0166f9f5 100644 --- a/src/lib/commands/map.c +++ b/src/lib/commands/map.c @@ -57,7 +57,6 @@ map(void) struct nstr_sect ns; s_char origin = '\0'; int map_flags = 0; - int i; s_char what[64]; s_char buf[1024]; @@ -97,8 +96,7 @@ map(void) if (!snxtsct(&ns, what)) return RET_FAIL; } else if (!snxtsct(&ns, str)) { - i = atoi(str); - if (unit_map(unit_type, i, &ns, &origin)) + if (unit_map(unit_type, atoi(str), &ns, &origin)) return RET_FAIL; } for (b = player->argp[2]; b && *b; b++) {