mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-09-13 14:42:01 +00:00
Fix singleplayer
This commit is contained in:
parent
6ef6d0d27a
commit
f4af03a818
@ -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…
x
Reference in New Issue
Block a user