#define SD_AUTOMAP 0x1 #define SD_PLAY_IMPS 0x2 #define SD_MONST_IMPS 0x4 #define SD_THING_IMPS 0x8 #define SD_SOUND_IMPS 0x10 #define SD_ALARM 0x20 #define SD_PASS_ACTION 0x40 #define SD_TRANSPARENT 0x80 #define SD_PRIM_ANIM 0x100 #define SD_PRIM_VIS 0x200 #define SD_PRIM_GAB 0x400 #define SD_PRIM_FORV 0x800 #define SD_SEC_ANIM 0x1000 #define SD_SEC_VIS 0x2000 #define SD_SEC_GAB 0x4000 #define SD_SEC_FORV 0x8000 #define SD_LEFT_ARC 0x10000 #define SD_RIGHT_ARC 0x20000 #define SD_DOUBLE_SIDE 0x40000 #define SD_SPEC 0x80000 #define SD_COPY_ACTION 0x100000 #define SD_SEND_ACTION 0x200000 #define SD_APPLY_2ND 0x400000 #define SD_AUTOANIM 0x800000 #define SD_SECRET 0x20000000 #define SD_TRUESEE 0x40000000 #define SD_INVIS 0x80000000 #define MAPSIZE 100000 #define ITEM_SORTS 2000 #define MIN_DEPTH -20 #define MAX_DEPTH 20 #define M_ZOOM (1<