1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Sync with upstream (Issue #30).

Recompiled tier1 and mathlib  for all platforms will come in next commit.
This commit is contained in:
Nicholas Hastings
2016-11-30 10:01:15 -05:00
parent 98fe5b5a34
commit 3957adff10
491 changed files with 29846 additions and 10698 deletions

View File

@ -636,10 +636,17 @@ void CBaseEntity::SetPredictionRandomSeed( const CUserCmd *cmd )
if ( !cmd )
{
m_nPredictionRandomSeed = -1;
#ifdef GAME_DLL
m_nPredictionRandomSeedServer = -1;
#endif
return;
}
m_nPredictionRandomSeed = ( cmd->random_seed );
#ifdef GAME_DLL
m_nPredictionRandomSeedServer = ( cmd->server_random_seed );
#endif
}
@ -1679,7 +1686,7 @@ void CBaseEntity::FireBullets( const FireBulletsInfo_t &info )
int iSeed = 0;
if ( IsPlayer() )
{
iSeed = CBaseEntity::GetPredictionRandomSeed() & 255;
iSeed = CBaseEntity::GetPredictionRandomSeed( info.m_bUseServerRandomSeed ) & 255;
}
#if defined( HL2MP ) && defined( GAME_DLL )