eventually i gotta hit it right with a spot that works

This commit is contained in:
jenz 2024-02-13 23:36:24 +01:00
parent 56f6ac7e38
commit aaec53ec79

View File

@ -704,7 +704,6 @@ public Action Command_SetNextmap(int client, int args)
g_SaveCDOnMapEnd = true; g_SaveCDOnMapEnd = true;
else else
g_SaveCDOnMapEnd = false; g_SaveCDOnMapEnd = false;
return Plugin_Handled; return Plugin_Handled;
} }
@ -1606,6 +1605,12 @@ public void Handler_VoteFinishedGeneric(char[] map,
g_HasVoteStarted = false; g_HasVoteStarted = false;
g_MapVoteCompleted = true; g_MapVoteCompleted = true;
//checking on MapStart and MapEnd is not good enough. Players are not considered alive and on teams at those points in time.
//therefore instead applying the bool here after the mapvote completed.
if(InternalAreRestrictionsActive(false))
g_SaveCDOnMapEnd = true;
else
g_SaveCDOnMapEnd = false;
//PrintToChatAll("map: %s", map); //PrintToChatAll("map: %s", map);
CPrintToChatAll("[MCE] %t", "Nextmap Voting Finished", map, RoundToFloor((map_votes /num_votes)*100.0)); CPrintToChatAll("[MCE] %t", "Nextmap Voting Finished", map, RoundToFloor((map_votes /num_votes)*100.0));