Minor changes

This commit is contained in:
otfallen 2012-09-24 13:59:23 +00:00
parent 4d6057ffbe
commit 3902490d6b
4 changed files with 5 additions and 3 deletions

View File

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

View File

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

View File

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