Yet another set of fixes

这个提交包含在:
otfallen 2012-09-24 12:11:01 +00:00
父节点 7f6b204ded
当前提交 4d6057ffbe
共有 2 个文件被更改,包括 1 次插入6 次删除

查看文件

@ -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));