1
0
mirror of https://github.com/YGGverse/hlsdk-portable.git synced 2025-03-13 05:51:19 +00:00

Reset confirm state on wrong changelevel

This commit is contained in:
mittorn 2017-01-22 09:20:54 +00:00
parent ab4fc25e67
commit 682c83996b

@ -706,7 +706,10 @@ bool UTIL_CoopConfirmMenu(CBaseEntity *pTrigger, CBaseEntity *pActivator, int co
{
// do not allow go back if there are checkpoints, but not near changelevel
if( g_checkpoints[0].time && (g_checkpoints[0].origin - VecBModelOrigin(pTrigger->pev)).Length() > 150 )
{
g_GlobalMenu.m_iConfirm = 0;
return false;
}
//if( count2 < 2 )
//return;
}