Fixed class selection not saved in cookies on instant class change.
This commit is contained in:
parent
03cf46beb5
commit
0adc2c597a
@ -388,6 +388,7 @@ public ClassMenuSelectHandle(Handle:menu, MenuAction:action, client, slot)
|
|||||||
// Player isn't alive. The class can be directly changed.
|
// Player isn't alive. The class can be directly changed.
|
||||||
ClassSelected[client][teamid] = classindex;
|
ClassSelected[client][teamid] = classindex;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Save selected class index in cookie if enabled.
|
// Save selected class index in cookie if enabled.
|
||||||
if (GetConVarBool(g_hCvarsList[CVAR_CLASSES_SAVE]))
|
if (GetConVarBool(g_hCvarsList[CVAR_CLASSES_SAVE]))
|
||||||
@ -395,7 +396,6 @@ public ClassMenuSelectHandle(Handle:menu, MenuAction:action, client, slot)
|
|||||||
CookiesSetInt(client, g_hClassCookieClassSelected[teamid], classindex + 1);
|
CookiesSetInt(client, g_hClassCookieClassSelected[teamid], classindex + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
case MenuAction_Cancel:
|
case MenuAction_Cancel:
|
||||||
{
|
{
|
||||||
if (slot == MenuCancel_ExitBack)
|
if (slot == MenuCancel_ExitBack)
|
||||||
|
Loading…
Reference in New Issue
Block a user