diff --git a/src/client/refresh/files/models.c b/src/client/refresh/files/models.c index 014ba8eb..edcaf666 100644 --- a/src/client/refresh/files/models.c +++ b/src/client/refresh/files/models.c @@ -1707,7 +1707,8 @@ Mod_LoadModel_MD2Anox(const char *mod_name, const void *buffer, int modfilelen, ((int *)&pinmodel)[i] = LittleLong(((int *)buffer)[i]); } - if (pinmodel.version != ALIAS_ANACHRONOX_VERSION) + if (pinmodel.version != ALIAS_ANACHRONOX_VERSION && + pinmodel.version != ALIAS_ANACHRONOX_VERSION_OLD) { R_Printf(PRINT_ALL, "%s: %s has wrong version number (%i should be %i)\n", __func__, mod_name, pinmodel.version, ALIAS_ANACHRONOX_VERSION); @@ -3244,7 +3245,8 @@ Mod_LoadModelFile(const char *mod_name, const void *buffer, int modfilelen, short version; version = LittleShort(((short*)buffer)[2]); - if (version == ALIAS_ANACHRONOX_VERSION) + if (version == ALIAS_ANACHRONOX_VERSION || + version == ALIAS_ANACHRONOX_VERSION_OLD) { extradata = Mod_LoadModel_MD2Anox(mod_name, buffer, modfilelen, skins, numskins, type); diff --git a/src/common/header/files.h b/src/common/header/files.h index 19f27efc..25391bae 100644 --- a/src/common/header/files.h +++ b/src/common/header/files.h @@ -225,6 +225,7 @@ typedef struct /* .MD2 Anachronox triangle model file format */ #define MDAHEADER (('1' << 24) + ('A' << 16) + ('D' << 8) + 'M') +#define ALIAS_ANACHRONOX_VERSION_OLD 14 #define ALIAS_ANACHRONOX_VERSION 15 typedef struct