2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 23:25:45 +03:00

Outdated maps compatibility 'Q1BSP_VERSION' for dedicated server

This commit is contained in:
s1lentq 2021-05-03 00:50:25 +07:00
parent 8dd3013813
commit b0488cf081
2 changed files with 11 additions and 2 deletions

View File

@ -724,7 +724,12 @@ bool BSPModel::LoadFromBuffer(unsigned int *buffer, int length, const char *name
header = (dheader_t *)buffer;
i = _LittleLong(header->version);
if (i != HLBSP_VERSION) {
if (
#ifdef HLTV_FIXES
i != Q1BSP_VERSION &&
#endif
i != HLBSP_VERSION)
{
m_System->Errorf("BSPModel::LoadFromBuffer: %s has wrong version number (%i should be %i)\n", m_model.name, i, HLBSP_VERSION);
}

View File

@ -227,7 +227,11 @@ int CRC_MapFile(CRC32_t *crcvalue, char *pszFileName)
return 0;
}
i = LittleLong(header.version);
if (i != HLBSP_VERSION)
if (
#ifdef REHLDS_FIXES
i != Q1BSP_VERSION &&
#endif
i != HLBSP_VERSION)
{
Con_Printf("Map [%s] has incorrect BSP version (%i should be %i).\n", pszFileName, i, HLBSP_VERSION);
FS_Close(fp);