]> git.pond.sub.org Git - empserver/commitdiff
(map): Prompt only for sects for map and bmap commands.
authorRon Koenderink <rkoenderink@yahoo.ca>
Wed, 26 Jul 2006 23:13:52 +0000 (23:13 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Wed, 26 Jul 2006 23:13:52 +0000 (23:13 +0000)
Broken in 1.27.

src/lib/commands/map.c

index ec0cc792e1fe7efd1a1450fd4f0128f5d404fdbe..28b42f3b72617a713728d0aff5c9ae50c1c705a0 100644 (file)
@@ -43,7 +43,7 @@
 int
 map(void)
 {
-    int unit_type = EF_SHIP;
+    int unit_type = EF_BAD;
     int bmap = 0;
     char *str;
     char buf[1024];
@@ -87,5 +87,8 @@ map(void)
     } else
        str = player->argp[1];
 
+    if (unit_type == EF_BAD)
+       unit_type = EF_SHIP;
+
     return do_map(bmap, unit_type, str, player->argp[2]);
 }