From 6b793554949d5ad9544aa8b046a47f973298904f Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 26 Aug 2018 12:15:42 +0300 Subject: [PATCH] Make wish prompts not remember the input With EDIT_GETLIN, the wish prompt remembered the previous input, but this isn't actually useful. --- doc/fixes36.2 | 1 + src/zap.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes36.2 b/doc/fixes36.2 index 582b85c52..9aa0e6f36 100644 --- a/doc/fixes36.2 +++ b/doc/fixes36.2 @@ -95,6 +95,7 @@ object scattering during shop wall repair was skipped if a trap at the same spot was also being removed augmented death reason for "while helpless" was broken for record and logfile (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 diff --git a/src/zap.c b/src/zap.c index 966ac914e..ea0f9bee4 100644 --- a/src/zap.c +++ b/src/zap.c @@ -5071,7 +5071,7 @@ int triesleft; void makewish() { - static char buf[BUFSZ] = DUMMY; + char buf[BUFSZ] = DUMMY; char promptbuf[BUFSZ]; struct obj *otmp, nothing; int tries = 0;