[IXModel] Remove legacy support

This commit is contained in:
momo5502 2017-04-24 21:14:32 +02:00
parent 91c9cda59f
commit e2bad62c70

View File

@ -87,13 +87,7 @@ namespace Assets
} }
int version = reader.read<int>(); int version = reader.read<int>();
if (version != IW4X_MODEL_VERSION if (version != IW4X_MODEL_VERSION)
// Legacy model support (the code is backwards compatible)
#if IW4X_MODEL_VERSION == 5
&& (version + 1) != IW4X_MODEL_VERSION
#endif
)
{ {
Components::Logger::Error(0, "Reading model '%s' failed, expected version is %d, but it was %d!", name.data(), IW4X_MODEL_VERSION, version); Components::Logger::Error(0, "Reading model '%s' failed, expected version is %d, but it was %d!", name.data(), IW4X_MODEL_VERSION, version);
} }