]> git.jsancho.org Git - lugaru.git/commitdiff
Added a warning when loading a map with an old map version
authorCôme Chilliet <come@chilliet.eu>
Sat, 10 Dec 2016 06:18:49 +0000 (13:18 +0700)
committerCôme Chilliet <come@chilliet.eu>
Sat, 10 Dec 2016 06:18:49 +0000 (13:18 +0700)
Source/GameTick.cpp

index efd06e752eb7fb921b95e493ebd81da29f5b5149..a7b91b4cf1f93233fd5bfefa910d8e45cb367b79 100644 (file)
@@ -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