From 5c6d5cf1b4a22ae6d35b9c081bf34afec263ba63 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 17 Mar 2015 15:58:02 -0400 Subject: 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 --- tools/mapedit/src/world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/mapedit/src/world.cpp') 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) xmlChar* key = xmlNodeListGetString(doc, mapNode->xmlChildrenNode, 1); if (key != 0) { - map->setRightmap(atoi((char*) key)); + map->setRightmap(atoi((char*) key), false); } xmlFree(key); } else if (!xmlStrcmp(mapNode->name, (const xmlChar*) "entities")) -- cgit 1.4.1