Yet another set of fixes
这个提交包含在:
父节点
7f6b204ded
当前提交
4d6057ffbe
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
|
|
正在加载...
在新工单中引用