// Useful macros#define MkXY(x,y) (LOCATION(x+31,y-1))#define MkRect(x1,y1,x2,y2) (MAP_RECT(LOCATION(x1+31,y1-1),LOCATION(x2+31,y2-1)))#define XYPos(x,y) x+31,y-1#define RectPos(x1,y1,x2,y2) x1+31,y1-1,x2+31,y2-1// X and Y offset constsconst int X_ = 31;const int Y_ = -1;