mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix BSP minimum and maximum version on GL2
This commit is contained in:
parent
e04cbd57ea
commit
b4bae40da8
1 changed files with 10 additions and 0 deletions
|
@ -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++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue