]> granicus.if.org Git - nethack/commit
Fix bz175: Pile mark is shown when potion is destroyed
authorPasi Kallinen <paxed@alt.org>
Sun, 10 Jan 2016 16:27:34 +0000 (18:27 +0200)
committerPasi Kallinen <paxed@alt.org>
Sun, 10 Jan 2016 16:33:41 +0000 (18:33 +0200)
commit854fe40609daefc0709ef22c4c509825088eb15b
tree32672bf0a0fbc830a1f95c0e049d19f2e107b4cb
parenta8172e1208bddca281ef97dc96e8234da15c7193
Fix bz175: Pile mark is shown when potion is destroyed

Original bug report:

> When killing something that's carrying a potion, or death-drops a potion,
> or stands on top of a potion, with a force bolt or a wand of striking,
> "you hear something shatter" or "a potion of foo shatters" but the corpse
> is inverse as if it's (still) a pile.

Unfortunately the newsym() checks for already existing glyph, and
the gbuf doesn't distinguish between object piles and single items,
so newsym doesn't mark the location for update.

This is a dirty hack to force the newsym to update the glyph.
The glyph buffering should be revisited in a future version.
include/extern.h
src/display.c
src/zap.c