mirror of
https://github.com/edubart/otclient.git
synced 2025-12-22 08:17:11 +01:00
New lightweight minimap format, finish #15
This commit is contained in:
@@ -382,7 +382,6 @@ bool Map::loadOtcm(const std::string& fileName)
|
||||
if(!fin)
|
||||
stdext::throw_exception("unable to open file");
|
||||
|
||||
stdext::timer loadTimer;
|
||||
fin->cache();
|
||||
|
||||
uint32 signature = fin->getU32();
|
||||
@@ -446,8 +445,6 @@ bool Map::loadOtcm(const std::string& fileName)
|
||||
|
||||
fin->close();
|
||||
|
||||
// well, this is really slow
|
||||
g_logger.debug(stdext::format("Otcm load time: %.2f seconds", loadTimer.elapsed_seconds()));
|
||||
return true;
|
||||
} catch(stdext::exception& e) {
|
||||
g_logger.error(stdext::format("failed to load OTCM map: %s", e.what()));
|
||||
@@ -519,7 +516,6 @@ void Map::saveOtcm(const std::string& fileName)
|
||||
fin->flush();
|
||||
|
||||
fin->close();
|
||||
//g_logger.debug(stdext::format("Otcm save time: %.2f seconds", saveTimer.elapsed_seconds()));
|
||||
} catch(stdext::exception& e) {
|
||||
g_logger.error(stdext::format("failed to save OTCM map: %s", e.what()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user