Make vault guard accept names starting with number

Fix via Dynahack by Tung Nguyen
This commit is contained in:
Pasi Kallinen
2016-01-06 17:28:45 +02:00
parent c740425a90
commit c2ceb88d3c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -98,6 +98,7 @@ allow picking a used inventory letter from menu when #adjusting
zapping wand of opening at yourself, unlock carried boxes zapping wand of opening at yourself, unlock carried boxes
dissolve iron bars by force-fighting with wielded potion of acid dissolve iron bars by force-fighting with wielded potion of acid
poison breath leaves a trail of poison gas poison breath leaves a trail of poison gas
make vault guard accept names starting with number
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes
+1 -1
View File
@@ -376,7 +376,7 @@ invault()
do { do {
getlin("\"Hello stranger, who are you?\" -", buf); getlin("\"Hello stranger, who are you?\" -", buf);
(void) mungspaces(buf); (void) mungspaces(buf);
} while (!letter(buf[0]) && --trycount > 0); } while (!buf[0] && --trycount > 0);
if (u.ualign.type == A_LAWFUL if (u.ualign.type == A_LAWFUL
/* ignore trailing text, in case player includes rank */ /* ignore trailing text, in case player includes rank */