add an mgflags parameter to mapglyph() to alter how it behaves internally
avoid a recent save-value,call,restore-value kludge by adding an mgflags parameter to mapglyph() to control its behavior Changes to be committed: modified: doc/window.doc modified: include/extern.h modified: include/hack.h modified: src/detect.c modified: src/mapglyph.c modified: src/pager.c modified: sys/amiga/winfuncs.c modified: sys/wince/mhmap.c modified: win/Qt/qt_win.cpp modified: win/Qt4/qt4map.cpp modified: win/X11/winmap.c modified: win/curses/cursdial.c modified: win/curses/cursinvt.c modified: win/curses/cursmain.c modified: win/gem/wingem.c modified: win/tty/wintty.c modified: win/win32/mhmap.c modified: win/win32/mswproc.c
This commit is contained in:
@@ -1209,7 +1209,7 @@ E boolean FDECL(usmellmon, (struct permonst *));
|
||||
|
||||
/* ### mapglyph.c ### */
|
||||
|
||||
E int FDECL(mapglyph, (int, int *, int *, unsigned *, int, int));
|
||||
E int FDECL(mapglyph, (int, int *, int *, unsigned *, int, int, unsigned));
|
||||
E char *FDECL(encglyph, (int));
|
||||
E char *FDECL(decode_mixed, (char *, const char *));
|
||||
E void FDECL(genl_putmixed, (winid, int, const char *));
|
||||
|
||||
@@ -69,6 +69,10 @@ enum dismount_types {
|
||||
DISMOUNT_BYCHOICE = 6
|
||||
};
|
||||
|
||||
/* mgflags for mapglyph() */
|
||||
#define MG_FLAG_NORMAL 0x00
|
||||
#define MG_FLAG_NOOVERRIDE 0x01
|
||||
|
||||
/* Special returns from mapglyph() */
|
||||
#define MG_CORPSE 0x01
|
||||
#define MG_INVIS 0x02
|
||||
|
||||
Reference in New Issue
Block a user