(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; continue;
d = player->map[sctoff(nstr.x, nstr.y)]; d = player->map[sctoff(nstr.x, nstr.y)];
sprintf(prompt, "%s '%c' desig? ", 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) if ((p = getstarg(player->argp[2], prompt, buf)) == 0)
continue; continue;
if (!isprint(*p)) { if (!isprint(*p)) {