Browse Source

Fix singleplayer

gravgun
mittorn 8 years ago
parent
commit
f4af03a818
  1. 3
      dlls/triggers.cpp

3
dlls/triggers.cpp

@ -2201,6 +2201,8 @@ void CChangeLevel::ChangeLevelNow( CBaseEntity *pActivator )
g_iMenu = 0; g_iMenu = 0;
g_GlobalMenu.m_iConfirm = 0; g_GlobalMenu.m_iConfirm = 0;
// loop through all clients, reset state // loop through all clients, reset state
if( mp_coop_changelevel.value )
{
for( int i = 1; i <= gpGlobals->maxClients; i++ ) for( int i = 1; i <= gpGlobals->maxClients; i++ )
{ {
CBasePlayer *plr = (CBasePlayer*)UTIL_PlayerByIndex( i ); CBasePlayer *plr = (CBasePlayer*)UTIL_PlayerByIndex( i );
@ -2225,6 +2227,7 @@ void CChangeLevel::ChangeLevelNow( CBaseEntity *pActivator )
} }
} }
g_fPause = true; g_fPause = true;
}
s_SavedCoords.fUsed = m_bUsed; s_SavedCoords.fUsed = m_bUsed;
s_SavedCoords.valid = valid; s_SavedCoords.valid = valid;
if( mp_coop_reconnect_hack.value ) if( mp_coop_reconnect_hack.value )

Loading…
Cancel
Save