(map): Prompt only for sects for map and bmap commands.

Broken in 1.27.
This commit is contained in:
Ron Koenderink 2006-07-26 23:13:52 +00:00
parent 22e529a93d
commit 80e5a77e83

View file

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