Do not show train controls after player death.

This commit is contained in:
Night Owl 2018-02-15 18:15:02 +05:00
parent 53626b9965
commit 556e2647fe
1 changed files with 5 additions and 2 deletions

View File

@ -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 )
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];