From 655d722d4d347facb2c2232dcec6349d4040b6fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Sat, 10 Dec 2016 13:18:49 +0700 Subject: [PATCH] Added a warning when loading a map with an old map version --- Source/GameTick.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5