33 #define COLOR_PLAYER (PAL8_ORANGE + 1)
35 #define COLOR_BRIGHT PAL8_YELLOW
37 #define COLOR_DIM (PAL16_YELLOW + 8)
39 #define MAPFLAG_TYPE 0x000F
41 #define MAPFLAG_VERTDOOR 0x01
42 #define MAPFLAG_HORZDOOR 0x02
43 #define MAPFLAG_VERTARCH 0x04
44 #define MAPFLAG_HORZARCH 0x08
45 #define MAPFLAG_VERTGRATE 0x10
46 #define MAPFLAG_HORZGRATE 0x20
47 #define MAPFLAG_DIRT 0x40
48 #define MAPFLAG_STAIRS 0x80
72 for (i = 0; i < 31; i++) {
77 if (320 % d >= (j << 5) / 100)
104 for (i = 1; i <= dwTiles; i++) {
113 for (y = 0; y <
MAXDUNY; y++) {
209 sx = 384 -
AmLine64 * ((cells - 1) >> 1);
210 sy = 336 -
AmLine32 * ((cells + 1) >> 1);
233 for (i = 0; i <= cells + 1; i++) {
237 for (j = 0; j < cells; j++) {
246 for (j = 0; j <= cells; j++) {
268 BYTE flags = automap_type >> 8;
298 do_cave_horz = FALSE;
299 do_cave_vert = FALSE;
537 if (x < 0 || x >=
DMAXX) {
540 if (y < 0 || y >=
DMAXX) {
589 if (xx < 0 || xx >=
DMAXX || yy < 0 || yy >=
DMAXY) {
596 solid = maptype & 0x4000;
598 switch (maptype & 0xF) {