From d4df876a6f8247f0f5b6bc6df8cbe58776d525fb Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 22 Nov 2019 02:46:28 -0800 Subject: [PATCH] docall fix Noticed while testing something: hero drank a potion of see invisible and nearby invisible monster could now be seen--in theory--but I was asked what to call the potion while the updated map was buffered. So I didn't see the invisible monster until after naming the potion. pline() flushes buffered map updates, but getlin() doesn't. I didn't change that, but I've made docall() do so since the updated map may make a difference in what the player can tell about whatever is being 'called'. --- doc/fixes36.3 | 5 ++++- src/do_name.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/fixes36.3 b/doc/fixes36.3 index 4f7ec8ea6..978496348 100644 --- a/doc/fixes36.3 +++ b/doc/fixes36.3 @@ -1,4 +1,4 @@ -$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.187 $ $NHDT-Date: 1574387029 2019/11/22 01:43:49 $ +$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.188 $ $NHDT-Date: 1574419578 2019/11/22 10:46:18 $ This fixes36.3 file is here to capture information about updates in the 3.6.x lineage following the release of 3.6.2 in May 2019. Please note, however, @@ -292,6 +292,9 @@ fix several tribute typos pluralization correction for unlikely epoch and loch ensure that --showpaths displays the personal configuration file last don't strip leading slash from hallucinatory monster name "/b/tard" +quaffing unknown potion of see invisible resulted in asking what to call the + potion while updated monster display was buffered so not yet shown, + hence potentially noticeable effect was concealed from player unix: Fix double DLB definition in linux hints file windows: fix --showpaths output for the data file which relies on being constructed programmatically to incorporate the version suffix diff --git a/src/do_name.c b/src/do_name.c index 354850a81..ed0eea5a1 100644 --- a/src/do_name.c +++ b/src/do_name.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 do_name.c $NHDT-Date: 1574387027 2019/11/22 01:43:47 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.151 $ */ +/* NetHack 3.6 do_name.c $NHDT-Date: 1574419578 2019/11/22 10:46:18 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.152 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Pasi Kallinen, 2018. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1473,6 +1473,7 @@ struct obj *obj; if (!obj->dknown) return; /* probably blind */ + flush_screen(1); /* buffered updates might matter to player's response */ if (obj->oclass == POTION_CLASS && obj->fromsink) /* kludge, meaning it's sink water */