summaryrefslogtreecommitdiff
path: root/src/defines.h
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-03-07 17:39:39 +0100
committerBardur Arantsson <bardur@scientician.net>2015-03-07 17:39:39 +0100
commit9d339661c8646f2ddb598a8490b34a45f928edb8 (patch)
treea0763368abb55ad53bd91a46605076a221ea1459 /src/defines.h
parentee2234b03fdc201045261d13b4c9101befbe074d (diff)
Change in_bounds* and panel_contains macros to functions in util.cc
Diffstat (limited to 'src/defines.h')
-rw-r--r--src/defines.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/defines.h b/src/defines.h
index 3d87df47..c5ec3a20 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -3385,33 +3385,6 @@
-
-
-/*
- * Determines if a map location is fully inside the outer walls
- */
-#define in_bounds(Y,X) \
- (((Y) > 0) && ((X) > 0) && ((Y) < cur_hgt-1) && ((X) < cur_wid-1))
-
-/*
- * Determines if a map location is on or inside the outer walls
- */
-#define in_bounds2(Y,X) \
- (((Y) >= 0) && ((X) >= 0) && ((Y) < cur_hgt) && ((X) < cur_wid))
-
-
-/*
- * Determines if a map location is currently "on screen" -RAK-
- * Note that "panel_contains(Y,X)" always implies "in_bounds2(Y,X)".
- */
-#define panel_contains(Y,X) \
- (((Y) >= panel_row_min) && ((Y) <= panel_row_max) && \
- ((X) >= panel_col_min) && ((X) <= panel_col_max))
-
-
-
-
-
/*** Color constants ***/