X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsector.cpp;h=c340ddb5098c9e24410a3a59d2144e96e3afb698;hb=8bcdd6a1e7885a8280f999a750ba7a411414ccaf;hp=57418fd83f206d9af7c5c13c8db0f38e16609e12;hpb=bbc091a52439e4942cfa614a6c16b3f530dfab8a;p=supertux.git diff --git a/src/sector.cpp b/src/sector.cpp index 57418fd83..c340ddb50 100644 --- a/src/sector.cpp +++ b/src/sector.cpp @@ -177,6 +177,9 @@ Sector::parse_object(const std::string& name, const lisp::Lisp& reader) void Sector::parse(const lisp::Lisp& sector) { + + TileMap::loading_worldmap = false; + bool has_background = false; lisp::ListIterator iter(§or); while(iter.next()) { @@ -236,6 +239,9 @@ Sector::parse(const lisp::Lisp& sector) void Sector::parse_old_format(const lisp::Lisp& reader) { + + TileMap::loading_worldmap = false; + name = "main"; reader.get("gravity", gravity);