From ffb3f12997084e5a79b5949f531ce9d0ec3827a6 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 1 Sep 2017 09:43:36 +0300 Subject: [PATCH] Fix pile display when picking up items while invisible Reported directly to the devteam. Set hilite_pile on, become invisible, pick up all but one item from a pile on the floor, the pile symbol was still there afterwards. This is yet another case of evil hack, because the gbuf doesn't distinguish between object piles and single items, see commit 854fe40609 --- doc/fixes36.1 | 1 + src/pickup.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes36.1 b/doc/fixes36.1 index 487588a24..2a0ea77a1 100644 --- a/doc/fixes36.1 +++ b/doc/fixes36.1 @@ -419,6 +419,7 @@ surviving a gas spore's explosion would leave that explosion as a stale reason spore's explosion" when killed by an opening drawbridge) add database entry for "martial arts" starting inventory for rogues specified +9 lock pick, where +/-N is meaningless +fix pile mark when picking up all-but-one items while invisible Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository diff --git a/src/pickup.c b/src/pickup.c index 0b91a4bb4..0f63a43bf 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -707,7 +707,7 @@ int what; /* should be a long */ /* position may need updating (invisible hero) */ if (n_picked) - newsym(u.ux, u.uy); + newsym_force(u.ux, u.uy); /* check if there's anything else here after auto-pickup is done */ if (autopickup)