diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-03-07 16:55:42 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-03-07 16:55:42 +0100 |
commit | 9f1d3f9c27ae3dc717ec781e14fd44626f223641 (patch) | |
tree | 4726ede75f4c1159237e027b99545a83a51b3866 /src/defines.h | |
parent | 45fac786776f6664727daf160919f22313061017 (diff) |
Move GRID, GRID_{X,Y} macros to spells1.cc
Diffstat (limited to 'src/defines.h')
-rw-r--r-- | src/defines.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/defines.h b/src/defines.h index a7eddd0d..54c5a845 100644 --- a/src/defines.h +++ b/src/defines.h @@ -3409,24 +3409,6 @@ ((char)((byte)(P))) -/* - * Convert a "location" (Y,X) into a "grid" (G) - */ -#define GRID(Y,X) \ - (256 * (Y) + (X)) - -/* - * Convert a "grid" (G) into a "location" (Y) - */ -#define GRID_Y(G) \ - ((int)((G) / 256U)) - -/* - * Convert a "grid" (G) into a "location" (X) - */ -#define GRID_X(G) \ - ((int)((G) % 256U)) - /* * Determines if a map location is fully inside the outer walls |