Browse Source

Fix creating checkpoint in spectator mode

gravgun
mittorn 8 years ago
parent
commit
7a881f2a82
  1. 2
      dlls/coop.cpp

2
dlls/coop.cpp

@ -487,7 +487,7 @@ void UTIL_CoopProcessMenu( CBasePlayer *pPlayer, int imenu ) @@ -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 );

Loading…
Cancel
Save