diff options
author | Darshan Shaligram <scintilla@gmail.com> | 2013-02-03 17:24:51 -0500 |
---|---|---|
committer | Darshan Shaligram <scintilla@gmail.com> | 2013-02-03 21:56:11 -0500 |
commit | ea21e6f68b80c4be47bd11ebed260bb85b29f90a (patch) | |
tree | 5fca950852f0bf86b188198c10c7c83b3d9b2570 /crawl-ref/source/dgn-height.cc | |
parent | 7af4ce618f40e4bee0bb796d0cad9b5bd07c355e (diff) | |
download | crawl-ref-ea21e6f68b80c4be47bd11ebed260bb85b29f90a.tar.gz crawl-ref-ea21e6f68b80c4be47bd11ebed260bb85b29f90a.zip |
Fix Shoals map connections.
Shoals maps used join-the-dots which produces unnatural corridors. Fixed to
postprocess the join-the-dots path and update the heightmap around the path to
make it look less artificial.
Diffstat (limited to 'crawl-ref/source/dgn-height.cc')
-rw-r--r-- | crawl-ref/source/dgn-height.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/dgn-height.cc b/crawl-ref/source/dgn-height.cc index a4390278d4..91092552ee 100644 --- a/crawl-ref/source/dgn-height.cc +++ b/crawl-ref/source/dgn-height.cc @@ -56,6 +56,9 @@ void dgn_island_centred_at(const coord_def &c, void dgn_smooth_height_at(coord_def c, int radius, int max_height) { + if (!in_bounds(c)) + return; + const int height = dgn_height_at(c); if (max_height != DGN_UNDEFINED_HEIGHT && height > max_height) return; |