Fix creating checkpoint in spectator mode

This commit is contained in:
mittorn 2017-01-29 11:47:17 +02:00
parent 309dbf57ae
commit 7a881f2a82
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ void UTIL_CoopProcessMenu( CBasePlayer *pPlayer, int imenu )
case MENUSTATE_CHECKPOINT:
if( imenu == 1 )
{
if( pPlayer->m_state == STATE_SPECTATOR_BEGIN )
if( pPlayer->m_state != STATE_SPAWNED )
UTIL_SpawnPlayer( pPlayer );
else if( !UTIL_CoopIsBadPlayer( pPlayer ) )
UTIL_CoopNewCheckpoint( pPlayer->pev );