Make wish prompts not remember the input

With EDIT_GETLIN, the wish prompt remembered the previous input,
but this isn't actually useful.
This commit is contained in:
Pasi Kallinen
2018-08-26 12:18:16 +03:00
parent 083e0904db
commit 6b79355494
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -95,6 +95,7 @@ object scattering during shop wall repair was skipped if a trap at the same
spot was also being removed spot was also being removed
augmented death reason for "while helpless" was broken for record and logfile augmented death reason for "while helpless" was broken for record and logfile
(but still correct for xlogfile) (but still correct for xlogfile)
prevent wish prompt input from remembering the previous wish
Fixes to Post-3.6.1 Problems that Were Exposed Via git Repository Fixes to Post-3.6.1 Problems that Were Exposed Via git Repository
+1 -1
View File
@@ -5071,7 +5071,7 @@ int triesleft;
void void
makewish() makewish()
{ {
static char buf[BUFSZ] = DUMMY; char buf[BUFSZ] = DUMMY;
char promptbuf[BUFSZ]; char promptbuf[BUFSZ];
struct obj *otmp, nothing; struct obj *otmp, nothing;
int tries = 0; int tries = 0;