had forgotten to consider the revotes, they are added now as well

This commit is contained in:
jenz
2026-08-22 14:23:27 +02:00
parent b3eb1f92c1
commit 4ad037bd13
@@ -262,6 +262,21 @@ public void OnClientDisconnect(int client)
g_iClientMinutes[client] = 0;
}
public void OnMapVoteRunnoffWarningStart()
{
if (!g_bCorrectServer)
{
return;
}
char sMapname[64];
GetCurrentMap(sMapname, sizeof(sMapname));
char sQuery[512]; //picking max() is usually considered haram
Format(sQuery, sizeof(sQuery), "INSERT INTO `playtime_display_map_vote_events` (`map_id`, `current_map`, `result`) VALUES((select max(map_id) from `playtime_display_map_history`), '%s','Revote needed!')", sMapname);
g_hDatabase.Query(SQL_FinishedQueryMapVoteEndCallback, sQuery, _, DBPrio_Normal);
}
public void OnMapVoteEnd(const char[] map)
{
if (!g_bCorrectServer)