From 7a881f2a8202b03b422ed0813b9c7722add360be Mon Sep 17 00:00:00 2001 From: mittorn Date: Sun, 29 Jan 2017 11:47:17 +0200 Subject: [PATCH] Fix creating checkpoint in spectator mode --- dlls/coop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/coop.cpp b/dlls/coop.cpp index 370dee59..732e6435 100644 --- a/dlls/coop.cpp +++ b/dlls/coop.cpp @@ -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 );