summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-02 06:52:42 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-02 06:52:42 +0000
commit7657abf4394bc49be231940e2cfccf7d35a9e13d (patch)
tree2b9b49621dfe2ed444ea708bece81e4f5b3bf82c /crawl-ref/source/mapdef.cc
parentb072984d6840b43de8121f3262b699a8f59dbefa (diff)
downloadcrawl-ref-7657abf4394bc49be231940e2cfccf7d35a9e13d.tar.gz
crawl-ref-7657abf4394bc49be231940e2cfccf7d35a9e13d.zip
Fixed LFLAGS not working right when conditionalised (bobbens).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2722 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index 4e19d6fa45..91243e8c2e 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -1183,6 +1183,9 @@ void map_def::reinit()
{
items.clear();
keyspecs.clear();
+ level_flags.clear();
+ branch_flags.clear();
+
welcome_messages.clear();
rock_colour = floor_colour = BLACK;
@@ -2525,6 +2528,11 @@ map_flags::map_flags()
{
}
+void map_flags::clear()
+{
+ flags_set = flags_unset = 0;
+}
+
typedef std::map<std::string, unsigned long> flag_map;
map_flags map_flags::parse(const std::string flag_list[],