From e2bad62c703f4ff240c80aea6f22cae7ce0522f1 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Mon, 24 Apr 2017 21:14:32 +0200 Subject: [PATCH] [IXModel] Remove legacy support --- src/Components/Modules/AssetInterfaces/IXModel.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Components/Modules/AssetInterfaces/IXModel.cpp b/src/Components/Modules/AssetInterfaces/IXModel.cpp index 34278013..5623df12 100644 --- a/src/Components/Modules/AssetInterfaces/IXModel.cpp +++ b/src/Components/Modules/AssetInterfaces/IXModel.cpp @@ -87,13 +87,7 @@ namespace Assets } int version = reader.read(); - if (version != IW4X_MODEL_VERSION - -// Legacy model support (the code is backwards compatible) -#if IW4X_MODEL_VERSION == 5 - && (version + 1) != IW4X_MODEL_VERSION -#endif - ) + if (version != IW4X_MODEL_VERSION) { Components::Logger::Error(0, "Reading model '%s' failed, expected version is %d, but it was %d!", name.data(), IW4X_MODEL_VERSION, version); }