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.cc | |
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.cc')
-rw-r--r-- | crawl-ref/source/mapdef.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index 809b278c4b..70b128a6d3 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -1093,6 +1093,7 @@ void map_def::init() main.clear(); validate.clear(); veto.clear(); + place_loaded_from.clear(); reinit(); } @@ -1187,6 +1188,8 @@ void map_def::write_index(FILE *outf) const end(1, false, "Map %s: can't write index - cache offset not set!", name.c_str()); writeString(outf, name); + writeString(outf, place_loaded_from.filename); + writeLong(outf, place_loaded_from.lineno); writeShort(outf, orient); writeLong(outf, chance); writeLong(outf, cache_offset); @@ -1199,6 +1202,8 @@ void map_def::write_index(FILE *outf) const void map_def::read_index(FILE *inf) { name = readString(inf); + place_loaded_from.filename = readString(inf); + place_loaded_from.lineno = readLong(inf); orient = static_cast<map_section_type>( readShort(inf) ); chance = readLong(inf); cache_offset = readLong(inf); |