diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-17 15:58:02 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-17 15:58:02 -0400 |
commit | 5c6d5cf1b4a22ae6d35b9c081bf34afec263ba63 (patch) | |
tree | c5df24939a0678abf14e0e79fd2d5b0bfe17328f /tools/mapedit/src/world.cpp | |
parent | 90ae982fc2bfdf2f4c049db747ce9516debb148a (diff) | |
download | therapy-5c6d5cf1b4a22ae6d35b9c081bf34afec263ba63.tar.gz therapy-5c6d5cf1b4a22ae6d35b9c081bf34afec263ba63.tar.bz2 therapy-5c6d5cf1b4a22ae6d35b9c081bf34afec263ba63.zip |
Made some nice changes to the map editor widget
Center the map edit widget Map edit zooming in should happen around the cursor Disallow editing outside the mapedit widget Add some scroll space around the mapedit widget
Diffstat (limited to 'tools/mapedit/src/world.cpp')
-rw-r--r-- | tools/mapedit/src/world.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mapedit/src/world.cpp b/tools/mapedit/src/world.cpp index db1201e..fb0bb36 100644 --- a/tools/mapedit/src/world.cpp +++ b/tools/mapedit/src/world.cpp | |||
@@ -114,7 +114,7 @@ World::World(std::string filename) | |||
114 | xmlChar* key = xmlNodeListGetString(doc, mapNode->xmlChildrenNode, 1); | 114 | xmlChar* key = xmlNodeListGetString(doc, mapNode->xmlChildrenNode, 1); |
115 | if (key != 0) | 115 | if (key != 0) |
116 | { | 116 | { |
117 | map->setRightmap(atoi((char*) key)); | 117 | map->setRightmap(atoi((char*) key), false); |
118 | } | 118 | } |
119 | xmlFree(key); | 119 | xmlFree(key); |
120 | } else if (!xmlStrcmp(mapNode->name, (const xmlChar*) "entities")) | 120 | } else if (!xmlStrcmp(mapNode->name, (const xmlChar*) "entities")) |