]> granicus.if.org Git - nethack/commit
odd Windows lighting in lit rooms (issue #929)
authornhmall <nhmall@nethack.org>
Mon, 12 Dec 2022 02:29:42 +0000 (21:29 -0500)
committernhmall <nhmall@nethack.org>
Mon, 12 Dec 2022 02:29:42 +0000 (21:29 -0500)
commit5ac96e9318d066c38d9c418cf53af3cfaecc17e3
tree9616e366ae6070f466f4ea0a95932b95364d8acd
parent608490ad98a32c3a150ba111db9de7a86d0d97ba
odd Windows lighting in lit rooms (issue #929)

bkglyph variable gets initialized to GLYPH_UNEXPLORED so ends
up being returned by get_bk_glyph() if something more interesting
wasn't chosen in the switch statement.

The Windows win32 interface will then use the tile mapped to
GLYPH_UNEXPLORED as a background. The tile is 16x16 all black
pixels. That looked very odd.

Treat GLYPH_UNEXPLORED as an out-of-range value.

Closes #929
win/win32/mhmap.c