Fix BSP minimum and maximum version on GL2

This commit is contained in:
smallmodel 2024-12-22 19:00:15 +01:00
parent e04cbd57ea
commit b4bae40da8
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -3358,10 +3358,20 @@ void RE_LoadWorldMap( const char *name ) {
fileBase = (byte *)header; fileBase = (byte *)header;
i = LittleLong (header->version); i = LittleLong (header->version);
#if 0
if ( i != BSP_VERSION ) { if ( i != BSP_VERSION ) {
ri.Error (ERR_DROP, "RE_LoadWorldMap: %s has wrong version number (%i should be %i)", ri.Error (ERR_DROP, "RE_LoadWorldMap: %s has wrong version number (%i should be %i)",
name, i, BSP_VERSION); name, i, BSP_VERSION);
} }
#endif
//
// OPENMOHAA-specific stuff
//=========================
if (i < BSP_MIN_VERSION || i > BSP_MAX_VERSION) {
ri.Error(ERR_DROP, "RE_LoadWorldMap: %s has wrong version number (%i should be between %i and %i)",
name, i, BSP_MIN_VERSION, BSP_MAX_VERSION);
}
//=========================
// swap all the lumps // swap all the lumps
for (i=0 ; i<sizeof(dheader_t)/4 ; i++) { for (i=0 ; i<sizeof(dheader_t)/4 ; i++) {