Fix weapon selection being broken at the start of demo(or manual fullupdate call)

This commit is contained in:
Alibek Omarov 2017-12-19 00:28:34 +03:00
parent c128c69ceb
commit 7981bad606
1 changed files with 4 additions and 0 deletions

View File

@ -3327,6 +3327,10 @@ void CBasePlayer::ForceClientDllUpdate( void )
m_fWeapon = FALSE; // Force weapon send
m_fKnownItem = FALSE; // Force weaponinit messages.
m_fInitHUD = TRUE; // Force HUD gmsgResetHUD message
m_bSentBhopcap = true; // a1ba: Update bhopcap state
memset( m_rgAmmoLast, 0, sizeof( m_rgAmmoLast )); // a1ba: Force update AmmoX
// Now force all the necessary messages
// to be sent.