]> granicus.if.org Git - nethack/commitdiff
Fix pile display when picking up items while invisible
authorPasi Kallinen <paxed@alt.org>
Fri, 1 Sep 2017 06:43:36 +0000 (09:43 +0300)
committerPasi Kallinen <paxed@alt.org>
Fri, 1 Sep 2017 06:43:36 +0000 (09:43 +0300)
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
src/pickup.c

index 487588a242909a3e798426472e08254952b22950..2a0ea77a1469efa3192691e7a5ac61b288f92fd2 100644 (file)
@@ -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
index 0b91a4bb42213d760b6b34d6c9df3e6852bbcf10..0f63a43bf4d26aaef032587e80e9389600366e08 100644 (file)
@@ -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)