From: Côme Chilliet Date: Sat, 10 Dec 2016 06:18:49 +0000 (+0700) Subject: Added a warning when loading a map with an old map version X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=commitdiff_plain;h=655d722d4d347facb2c2232dcec6349d4040b6fa Added a warning when loading a map with an old map version --- diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index efd06e7..a7b91b4 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -899,6 +899,9 @@ void Game::Loadlevel(const std::string& name) Person::players.resize(1); funpackf(tfile, "Bi", &mapvers); + if (mapvers < 12) { + cerr << name << " has obsolete map version " << mapvers << endl; + } if (mapvers >= 15) funpackf(tfile, "Bi", &indemo); else