mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
engine: fix static prop lump version 10 loading
This commit is contained in:
@@ -387,7 +387,8 @@ IModelLoader *modelloader = ( IModelLoader * )&g_ModelLoader;
|
||||
//-----------------------------------------------------------------------------
|
||||
// Globals used by the CMapLoadHelper
|
||||
//-----------------------------------------------------------------------------
|
||||
static dheader_t s_MapHeader;
|
||||
dheader_t s_MapHeader;
|
||||
|
||||
static FileHandle_t s_MapFileHandle = FILESYSTEM_INVALID_HANDLE;
|
||||
static char s_szLoadName[128];
|
||||
static char s_szMapName[128];
|
||||
|
||||
@@ -60,6 +60,7 @@ ConVar r_staticpropinfo( "r_staticpropinfo", "0" );
|
||||
ConVar r_drawmodeldecals( "r_drawmodeldecals", "1" );
|
||||
extern ConVar mat_fullbright;
|
||||
static bool g_MakingDevShots = false;
|
||||
extern dheader_t s_MapHeader;
|
||||
//-----------------------------------------------------------------------------
|
||||
// Index into the fade list
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -1382,7 +1383,10 @@ void CStaticPropMgr::UnserializeModels( CUtlBuffer& buf )
|
||||
break;
|
||||
|
||||
case 10:
|
||||
buf.Get( &lump, sizeof( StaticPropLumpV10_t ) );
|
||||
if( s_MapHeader.version >= 21 )
|
||||
buf.Get( &lump, sizeof( StaticPropLumpV10_21_t ) );
|
||||
else
|
||||
buf.Get( &lump, sizeof( StaticPropLumpV10_t ) );
|
||||
break;
|
||||
|
||||
case 11:
|
||||
|
||||
Reference in New Issue
Block a user