black&white lava
Add MG_BW_LAVA to mapglyph() instead of hijacking MG_DETECT. Used to display lava in inverse video if color is disabled and lava is using the same display character as water (which is the default). (The use_inverse option must be enabled for tty to honor it. X11's text mode doesn't care. Win32 does care but probably shouldn't--it's not a case like tty where the hardware might not support it.) This implements both MG_DETECT and MG_BW_LAVA for X11, but only if the program is built with TEXTCOLOR enabled. Those should work even when color is not supported, but I suspect that configuration is unlikely to ever be used so didn't want to spend the time to figure out how to do it. (The relevant data is overloaded on the color data, so not available when TEXTCOLOR is disabled.) The win32 revision is untested.
This commit is contained in:
@@ -57,13 +57,15 @@
|
||||
#define DISMOUNT_BYCHOICE 6
|
||||
|
||||
/* Special returns from mapglyph() */
|
||||
#define MG_CORPSE 0x01
|
||||
#define MG_INVIS 0x02
|
||||
#define MG_DETECT 0x04
|
||||
#define MG_PET 0x08
|
||||
#define MG_RIDDEN 0x10
|
||||
#define MG_STATUE 0x20
|
||||
#define MG_CORPSE 0x01
|
||||
#define MG_INVIS 0x02
|
||||
#define MG_DETECT 0x04
|
||||
#define MG_PET 0x08
|
||||
#define MG_RIDDEN 0x10
|
||||
#define MG_STATUE 0x20
|
||||
#define MG_OBJPILE 0x40 /* more than one stack of objects */
|
||||
#define MG_BW_LAVA 0x80 /* 'black & white lava': highlight lava if it
|
||||
can't be distringuished from water by color */
|
||||
|
||||
/* sellobj_state() states */
|
||||
#define SELL_NORMAL (0)
|
||||
|
||||
Reference in New Issue
Block a user