diff options
author | Brendan Hickey <brendan@bhickey.net> | 2013-03-02 17:39:09 -0800 |
---|---|---|
committer | Brendan Hickey <brendan@bhickey.net> | 2013-03-02 17:45:20 -0800 |
commit | 2a9ad8e908992dffb255856b15b4afe9c01906c0 (patch) | |
tree | f547eba3e5d9bebc2571ac02f0973854b52a1064 /crawl-ref/source/coord.h | |
parent | a843345b50b3ee2e58450861978ec8bfc4d7b887 (diff) | |
download | crawl-ref-2a9ad8e908992dffb255856b15b4afe9c01906c0.tar.gz crawl-ref-2a9ad8e908992dffb255856b15b4afe9c01906c0.zip |
Dungeon Levels in the Abyss
Use chunks of real levels to generate abyss levels.
Diffstat (limited to 'crawl-ref/source/coord.h')
-rw-r--r-- | crawl-ref/source/coord.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/coord.h b/crawl-ref/source/coord.h index 7ba6b25b1c..af27f4b9bc 100644 --- a/crawl-ref/source/coord.h +++ b/crawl-ref/source/coord.h @@ -37,6 +37,9 @@ static inline bool map_bounds(const coord_def &p) return map_bounds(p.x, p.y); } +// Convert an invalid coordinate to a map_bounds coordinate by truncation. +coord_def clip(const coord_def &p); + // Checks that a given point is within the map, excluding 'margin' squares at // the edge of the map. bool map_bounds_with_margin(coord_def p, int margin); |