diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-25 12:19:25 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-25 12:19:25 +0000 |
commit | dd4158d514297586e5fa76269dd6f6f6df5c3c2c (patch) | |
tree | 8b4eebe389bcb9427d832e46e00c09aa6573e90f /crawl-ref/source/mapdef.h | |
parent | fe973ee1c8d4069d19fe9b393d98b3db65556e24 (diff) | |
download | crawl-ref-dd4158d514297586e5fa76269dd6f6f6df5c3c2c.tar.gz crawl-ref-dd4158d514297586e5fa76269dd6f6f6df5c3c2c.zip |
dgn_place_map takes a coord_def to specify the centre of the map for minivaults and floating vaults. This placement can be activated using an asterisk (mapname*) when entering the name of the map in the &L command.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2559 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r-- | crawl-ref/source/mapdef.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h index de6ead6047..cb0488b325 100644 --- a/crawl-ref/source/mapdef.h +++ b/crawl-ref/source/mapdef.h @@ -598,6 +598,8 @@ public: void load(); bool in_map(const coord_def &p) const; + + coord_def size() const { return coord_def(map.width(), map.height()); } std::vector<coord_def> find_glyph(int glyph) const; coord_def find_first_glyph(int glyph) const; |