Reset confirm state on wrong changelevel

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

View File

@ -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 // 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 ) if( g_checkpoints[0].time && (g_checkpoints[0].origin - VecBModelOrigin(pTrigger->pev)).Length() > 150 )
{
g_GlobalMenu.m_iConfirm = 0;
return false; return false;
}
//if( count2 < 2 ) //if( count2 < 2 )
//return; //return;
} }