From be1147e7f0ea3f11fe3927ac7a31160a711b8247 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 23 Jul 2005 16:47:08 +0000 Subject: [PATCH] (bdes): Prompt was messed up when bmap contained designation 0. --- src/lib/commands/bdes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/commands/bdes.c b/src/lib/commands/bdes.c index 22c57d4e..23d2db33 100644 --- a/src/lib/commands/bdes.c +++ b/src/lib/commands/bdes.c @@ -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)) {