summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-09 17:50:47 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-09 17:50:47 +0000
commit9d17ec09d3e78f1428cc6318552a37fa1e03befd (patch)
treec9ac68ff00b93f8c6b661ac584b6508825b1d261 /crawl-ref/source/mapdef.cc
parent0ec7cf7056fb1e230696a46f0f776f72bd49a6fe (diff)
downloadcrawl-ref-9d17ec09d3e78f1428cc6318552a37fa1e03befd.tar.gz
crawl-ref-9d17ec09d3e78f1428cc6318552a37fa1e03befd.zip
Validate float map sizes so large maps aren't set ORIENT: float.
Changed the Rubicon to ORIENT: south. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1824 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index 17fa79c596..aaae6b209a 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -1374,6 +1374,7 @@ std::string map_def::validate_map_def()
break;
case MAP_NORTHEAST: case MAP_SOUTHEAST:
case MAP_NORTHWEST: case MAP_SOUTHWEST:
+ case MAP_FLOAT:
if (map.width() >= GXM * 2 / 3 || map.height() > GYM * 2 / 3)
return make_stringf("Map too large - %dx%d (max %dx%d)",
map.width(), map.height(),