1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

- better logging of some config files errors

- restored lvl 10 for some dragons
This commit is contained in:
Ivan Savenko
2013-03-09 13:16:35 +00:00
parent 044b19269e
commit b413d80ccc
4 changed files with 36 additions and 27 deletions

View File

@ -84,9 +84,17 @@ void CIdentifierStorage::finalize() const
{
// print list of missing objects and crash
// in future should try to do some cleanup (like returning all id's as 0)
BOOST_FOREACH(auto object, missingObjects)
if (!missingObjects.empty())
{
tlog1 << "Error: object " << object.first << " was not found!\n";
BOOST_FOREACH(auto object, missingObjects)
{
tlog1 << "Error: object " << object.first << " was not found!\n";
}
BOOST_FOREACH(auto object, registeredObjects)
{
tlog5 << object.first << " -> " << object.second << "\n";
}
tlog1 << "All known identifiers were dumped into log file\n";
}
assert(missingObjects.empty());
}