fix #H4237 - color ignored for X11 text map
commita41382d3081dd7fac5bcc70ad04ef4353c2b2837
authorPatR <rankin@nethack.org>
Tue, 9 Feb 2016 03:01:26 +0000 (8 19:01 -0800)
committerPatR <rankin@nethack.org>
Tue, 9 Feb 2016 03:01:26 +0000 (8 19:01 -0800)
tree1ad9962a6c4fcf9f6703f2cdb77e6a8a35cf8eb8
parent67c89712538c1c010f72e60b78921ea5ed97d396
fix #H4237 - color ignored for X11 text map

Color was only being tracked for locations that had the pile of
objects flag set.  And hilite_pile made a monster on a pile take
on the color of the top object of the pile.

This restores the tracking of color for the whole map, and makes
highlighted piles be drawn in inverse like highligted pets.  The
drawing routine doesn't know the difference (but could tell, if
necessary, by testing whether the glyph is an object or a monster).

Also, variables 'inbuf', 'inptr', and 'incount' were global; limit
their scope to winmap.c.
doc/fixes36.1
win/X11/winmap.c