diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-08 14:20:44 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-08 14:20:44 +0000 |
commit | 8fda0acad5c6c6bf377684d2c14de56ea2e77adf (patch) | |
tree | ca6f9ca80d911f17e3ac9543230bb25d1f9fe225 /crawl-ref/source/mapdef.h | |
parent | cb8c16f0c7b880d19b9e6f38b8ac697d8c2f885d (diff) | |
download | crawl-ref-8fda0acad5c6c6bf377684d2c14de56ea2e77adf.tar.gz crawl-ref-8fda0acad5c6c6bf377684d2c14de56ea2e77adf.zip |
Fixed level-compiler not warning of maps with the same name consistently.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1799 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r-- | crawl-ref/source/mapdef.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h index 79a9bb3a07..ddc64fe240 100644 --- a/crawl-ref/source/mapdef.h +++ b/crawl-ref/source/mapdef.h @@ -468,6 +468,23 @@ struct dlua_set_map class map_def; dungeon_feature_type map_feature(map_def *map, const coord_def &c, int rawfeat); +struct map_file_place +{ + std::string filename; + int lineno; + + map_file_place(const std::string &s = "", int line = 0) + : filename(s), lineno(line) + { + } + + void clear() + { + filename.clear(); + lineno = 0; + } +}; + class map_def { public: @@ -487,6 +504,8 @@ public: dlua_chunk prelude, main, validate, veto; + map_file_place place_loaded_from; + map_def *original; private: |