1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-31 00:07:39 +02:00

#928 and #931 should be fixed.

Ignoring savegames from newer versions of VCMI.
This commit is contained in:
Michał W. Urbańczyk
2012-04-17 12:46:21 +00:00
parent 294276ea13
commit cd4c93318d
3 changed files with 78 additions and 9 deletions

View File

@@ -330,7 +330,12 @@ void CLoadFile::openNextFile(const std::string &fname, int minimalVersion)
*this >> myVersion;
if(myVersion < minimalVersion)
{
tlog1 << "Error: Old file format! (file " << fname << " )\n";
tlog1 << "Error: Too old file format! (file " << fname << " )\n";
sfile.release();
}
if(myVersion > version)
{
tlog1 << "Error: Too new file format! (file " << fname << " )\n";
sfile.release();
}
}