Fix bdes not to gripe about empty desig input
This commit is contained in:
parent
e031a8a052
commit
90a4864c17
1 changed files with 2 additions and 1 deletions
|
@ -60,7 +60,8 @@ bdes(void)
|
||||||
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)) {
|
||||||
pr("Bad character. Must be printable!\n");
|
if (*p)
|
||||||
|
pr("Bad character. Must be printable!\n");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
changed |= map_set(player->cnum, nstr.x, nstr.y, *p, 2);
|
changed |= map_set(player->cnum, nstr.x, nstr.y, *p, 2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue