more /? of spaces
Restore the ability to look up a single space by 'name'.
I thought mungspaces("<all spaces>") kept one space, but it doesn't.
It's a lucky accident that unnaming monsters and objects still works.
There may be other places which intend to give a special meaning to
a single space that don't still work....
This commit is contained in:
@@ -1060,9 +1060,10 @@ coord *click_cc;
|
||||
case '?':
|
||||
from_screen = FALSE;
|
||||
getlin("Specify what? (type the word)", out_str);
|
||||
/* mungspaces prevents querying for a space glyph (eg. a ghost),
|
||||
but players almost always use '/' instead to look up glyphs */
|
||||
mungspaces(out_str);
|
||||
if (strcmp(out_str, " ")) /* keep single space as-is */
|
||||
/* remove leading and trailing whitespace and
|
||||
condense consecutive internal whitespace */
|
||||
mungspaces(out_str);
|
||||
if (out_str[0] == '\0' || out_str[0] == '\033')
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user