mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
remove thing that would stop from overflowing regular checkpoints
This commit is contained in:
parent
aa3ea6705a
commit
935f316b65
@ -2121,7 +2121,6 @@ public Action Command_Save(int client, int args)
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
int iMaxCPs = GetMaxCPs(client);
|
||||
bool bSegmenting = CanSegment(client);
|
||||
|
||||
if(!gCV_Checkpoints.BoolValue && !bSegmenting)
|
||||
@ -2131,12 +2130,6 @@ public Action Command_Save(int client, int args)
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
if(!bSegmenting && gA_Checkpoints[client].Length >= iMaxCPs)
|
||||
{
|
||||
Shavit_PrintToChat(client, "%T", "MiscCheckpointsOverflow", client);
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
if(SaveCheckpoint(client))
|
||||
{
|
||||
Shavit_PrintToChat(client, "%T", "MiscCheckpointsSaved", client, gI_CurrentCheckpoint[client], gS_ChatStrings.sVariable, gS_ChatStrings.sText);
|
||||
@ -2337,7 +2330,7 @@ void OpenNormalCPMenu(int client)
|
||||
|
||||
char sDisplay[64];
|
||||
FormatEx(sDisplay, 64, "%T", "MiscCheckpointSave", client, (gA_Checkpoints[client].Length + 1));
|
||||
menu.AddItem("save", sDisplay, (gA_Checkpoints[client].Length < gCV_MaxCP.IntValue || bSegmented)? ITEMDRAW_DEFAULT:ITEMDRAW_DISABLED);
|
||||
menu.AddItem("save", sDisplay, ITEMDRAW_DEFAULT);
|
||||
|
||||
if(gA_Checkpoints[client].Length > 0)
|
||||
{
|
||||
@ -2422,11 +2415,6 @@ public int MenuHandler_Checkpoints(Menu menu, MenuAction action, int param1, int
|
||||
|
||||
if(StrEqual(sInfo, "save"))
|
||||
{
|
||||
if(!CanSegment(param1) && gA_Checkpoints[param1].Length >= iMaxCPs)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
SaveCheckpoint(param1);
|
||||
}
|
||||
else if(StrEqual(sInfo, "tele"))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user