From 8fda0acad5c6c6bf377684d2c14de56ea2e77adf Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 8 Jul 2007 14:20:44 +0000 Subject: 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 --- crawl-ref/source/mapdef.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/mapdef.cc') 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( readShort(inf) ); chance = readLong(inf); cache_offset = readLong(inf); -- cgit v1.2.3-54-g00ecf