Minor changes
This commit is contained in:
parent
4d6057ffbe
commit
3902490d6b
|
@ -253,7 +253,7 @@ void CreatureManager::saveSpawns(const std::string& fileName)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!doc.SaveFile(fileName))
|
if(!doc.SaveFile(fileName))
|
||||||
stdext::throw_exception(stdext::format("failed to save spawns XML: %s", doc.ErrorDesc()));
|
stdext::throw_exception(stdext::format("failed to save spawns XML %s: %s", fileName, doc.ErrorDesc()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreatureManager::loadCreatureBuffer(const std::string& buffer)
|
void CreatureManager::loadCreatureBuffer(const std::string& buffer)
|
||||||
|
|
|
@ -153,7 +153,7 @@ void HouseManager::save(const std::string& fileName)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!doc.SaveFile(fileName))
|
if(!doc.SaveFile(fileName))
|
||||||
stdext::throw_exception(stdext::format("failed to save houses XML: %s", doc.ErrorDesc()));
|
stdext::throw_exception(stdext::format("failed to save houses XML %s: %s", fileName, doc.ErrorDesc()));
|
||||||
}
|
}
|
||||||
|
|
||||||
HouseList::iterator HouseManager::findHouse(uint32 houseId)
|
HouseList::iterator HouseManager::findHouse(uint32 houseId)
|
||||||
|
|
|
@ -109,7 +109,9 @@ void OTClient::registerLuaFunctions()
|
||||||
g_lua.bindSingletonFunction("g_map", "loadOtcm", &Map::loadOtcm, &g_map);
|
g_lua.bindSingletonFunction("g_map", "loadOtcm", &Map::loadOtcm, &g_map);
|
||||||
g_lua.bindSingletonFunction("g_map", "saveOtcm", &Map::saveOtcm, &g_map);
|
g_lua.bindSingletonFunction("g_map", "saveOtcm", &Map::saveOtcm, &g_map);
|
||||||
g_lua.bindSingletonFunction("g_map", "getHouseFile", &Map::getHouseFile, &g_map);
|
g_lua.bindSingletonFunction("g_map", "getHouseFile", &Map::getHouseFile, &g_map);
|
||||||
|
g_lua.bindSingletonFunction("g_map", "setHouseFile", &Map::setHouseFile, &g_map);
|
||||||
g_lua.bindSingletonFunction("g_map", "getSpawnFile", &Map::getSpawnFile, &g_map);
|
g_lua.bindSingletonFunction("g_map", "getSpawnFile", &Map::getSpawnFile, &g_map);
|
||||||
|
g_lua.bindSingletonFunction("g_map", "setSpawnFile", &Map::setSpawnFile, &g_map);
|
||||||
g_lua.bindSingletonFunction("g_map", "createTile", &Map::createTile, &g_map);
|
g_lua.bindSingletonFunction("g_map", "createTile", &Map::createTile, &g_map);
|
||||||
g_lua.bindSingletonFunction("g_map", "getSize", &Map::getSize, &g_map);;
|
g_lua.bindSingletonFunction("g_map", "getSize", &Map::getSize, &g_map);;
|
||||||
|
|
||||||
|
|
|
@ -211,7 +211,7 @@ void Map::loadOtbm(const std::string& fileName, const UIWidgetPtr& pbar)
|
||||||
fin->close();
|
fin->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Map::saveOtbm(const std::string &fileName, const UIWidgetPtr&/* pbar*/)
|
void Map::saveOtbm(const std::string& fileName, const UIWidgetPtr&/* pbar*/)
|
||||||
{
|
{
|
||||||
FileStreamPtr fin = g_resources.createFile(fileName);
|
FileStreamPtr fin = g_resources.createFile(fileName);
|
||||||
if(!fin)
|
if(!fin)
|
||||||
|
|
Loading…
Reference in New Issue