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:
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
|
// 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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user