diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-16 17:20:03 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-16 17:20:03 -0400 |
commit | 8b61d93fc869ea39a78cdc134002ef11bf3e69d3 (patch) | |
tree | c2aca3668c058cbdc7dfd9537802750f9c4f6600 /tools/mapedit/src/world.h | |
parent | 82fb304e61191f27403b5dbfaa90f24d625dee87 (diff) | |
download | therapy-8b61d93fc869ea39a78cdc134002ef11bf3e69d3.tar.gz therapy-8b61d93fc869ea39a78cdc134002ef11bf3e69d3.tar.bz2 therapy-8b61d93fc869ea39a78cdc134002ef11bf3e69d3.zip |
Opening a file in the map editor closes the current window if the current window is a blank slate
Diffstat (limited to 'tools/mapedit/src/world.h')
-rw-r--r-- | tools/mapedit/src/world.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mapedit/src/world.h b/tools/mapedit/src/world.h index c30f4b4..a2b5235 100644 --- a/tools/mapedit/src/world.h +++ b/tools/mapedit/src/world.h | |||
@@ -32,6 +32,7 @@ class World { | |||
32 | void setLastMap(Map* map); | 32 | void setLastMap(Map* map); |
33 | std::list<std::shared_ptr<Map>> getRootMaps() const; | 33 | std::list<std::shared_ptr<Map>> getRootMaps() const; |
34 | const std::map<int, std::shared_ptr<Map>> getMaps() const; | 34 | const std::map<int, std::shared_ptr<Map>> getMaps() const; |
35 | bool getEmpty() const; | ||
35 | 36 | ||
36 | private: | 37 | private: |
37 | MapeditFrame* parent; | 38 | MapeditFrame* parent; |
@@ -41,6 +42,7 @@ class World { | |||
41 | std::string filename; | 42 | std::string filename; |
42 | int lastmap = 0; | 43 | int lastmap = 0; |
43 | std::list<int> rootChildren; | 44 | std::list<int> rootChildren; |
45 | bool empty = false; | ||
44 | }; | 46 | }; |
45 | 47 | ||
46 | #endif | 48 | #endif |