Browse Source

Fixed RPG client prediction results stored in wrong pointer. (#206)

hl_urbicide
Marc-Antoine Lortie 3 years ago committed by GitHub
parent
commit
3674e3f154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cl_dll/hl/hl_weapons.cpp

4
cl_dll/hl/hl_weapons.cpp

@ -899,8 +899,8 @@ void HUD_WeaponsPostThink( local_state_s *from, local_state_s *to, usercmd_t *cm
if( player.m_pActiveItem->m_iId == WEAPON_RPG ) if( player.m_pActiveItem->m_iId == WEAPON_RPG )
{ {
from->client.vuser2[1] = ( (CRpg *)player.m_pActiveItem)->m_fSpotActive; to->client.vuser2[1] = ( (CRpg *)player.m_pActiveItem)->m_fSpotActive;
from->client.vuser2[2] = ( (CRpg *)player.m_pActiveItem)->m_cActiveRockets; to->client.vuser2[2] = ( (CRpg *)player.m_pActiveItem)->m_cActiveRockets;
} }
// Make sure that weapon animation matches what the game .dll is telling us // Make sure that weapon animation matches what the game .dll is telling us

Loading…
Cancel
Save