diff --git a/src/otclient/luafunctions.cpp b/src/otclient/luafunctions.cpp index 1aa64fdd..fa589e5c 100644 --- a/src/otclient/luafunctions.cpp +++ b/src/otclient/luafunctions.cpp @@ -111,6 +111,7 @@ void OTClient::registerLuaFunctions() g_lua.bindSingletonFunction("g_map", "getHouseFile", &Map::getHouseFile, &g_map); g_lua.bindSingletonFunction("g_map", "getSpawnFile", &Map::getSpawnFile, &g_map); g_lua.bindSingletonFunction("g_map", "createTile", &Map::createTile, &g_map); + g_lua.bindSingletonFunction("g_map", "getSize", &Map::getSize, &g_map);; g_lua.registerSingletonClass("g_creatures"); g_lua.bindSingletonFunction("g_creatures", "getCreatures", &CreatureManager::getCreatures, &g_creatures); diff --git a/src/otclient/mapio.cpp b/src/otclient/mapio.cpp index 6d48147a..36054bfc 100644 --- a/src/otclient/mapio.cpp +++ b/src/otclient/mapio.cpp @@ -252,12 +252,6 @@ void Map::saveOtbm(const std::string &fileName, const UIWidgetPtr&/* pbar*/) if((sep_pos = houseFile.rfind('/')) != std::string::npos) houseFile = houseFile.substr(sep_pos + 1); -#if 0 - if(version > 1) - m_houses->save(dir + "/" + houseFile); - - saveSpawns(dir + "/" + spawnFile); -#endif fin->addU32(0); // file version OutputBinaryTreePtr root(new OutputBinaryTree(fin));