Browse Source

Merge pull request #49 from nekonomicon/train

Do not show train controls after player death.
caseclosed
Alibek Omarov 7 years ago committed by GitHub
parent
commit
7e6419a368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      dlls/player.cpp

7
dlls/player.cpp

@ -782,6 +782,9 @@ void CBasePlayer::PackDeadPlayerItems( void ) @@ -782,6 +782,9 @@ void CBasePlayer::PackDeadPlayerItems( void )
void CBasePlayer::RemoveAllItems( BOOL removeSuit )
{
int i;
CBasePlayerItem *pPendingItem;
if( m_pActiveItem )
{
ResetAutoaim();
@ -794,8 +797,8 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit ) @@ -794,8 +797,8 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit )
if( m_pTank != 0 )
m_pTank->Use( this, this, USE_OFF, 0 );
int i;
CBasePlayerItem *pPendingItem;
m_iTrain = TRAIN_NEW; // turn off train
for( i = 0; i < MAX_ITEM_TYPES; i++ )
{
m_pActiveItem = m_rgpPlayerItems[i];

Loading…
Cancel
Save