mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
engine: fix bsp21 loading
This commit is contained in:
@@ -396,6 +396,8 @@ static worldbrushdata_t *s_pMap = NULL;
|
||||
static int s_nMapLoadRecursion = 0;
|
||||
static CUtlBuffer s_MapBuffer;
|
||||
|
||||
int s_MapVersion = 0;
|
||||
|
||||
// Lump files are patches for a shipped map
|
||||
// List of lump files found when map was loaded. Each entry is the lump file index for that lump id.
|
||||
struct lumpfiles_t
|
||||
@@ -469,6 +471,8 @@ void CMapLoadHelper::Init( model_t *pMapModel, const char *loadname )
|
||||
return;
|
||||
}
|
||||
|
||||
s_MapVersion = s_MapHeader.version;
|
||||
|
||||
V_strcpy_safe( s_szLoadName, loadname );
|
||||
|
||||
// Store map version, but only do it once so that the communication between the engine and Hammer isn't broken. The map version
|
||||
|
||||
Reference in New Issue
Block a user