(bdes): Prompt was messed up when bmap contained designation 0.

This commit is contained in:
Markus Armbruster 2005-07-23 16:47:08 +00:00
parent 8cc53c1c2b
commit be1147e7f0

View file

@ -57,7 +57,8 @@ bdes(void)
continue;
d = player->map[sctoff(nstr.x, nstr.y)];
sprintf(prompt, "%s '%c' desig? ",
xyas(nstr.x, nstr.y, player->cnum), d);
xyas(nstr.x, nstr.y, player->cnum),
d ? d : ' ');
if ((p = getstarg(player->argp[2], prompt, buf)) == 0)
continue;
if (!isprint(*p)) {