Skip to content

Commit

Permalink
Fix some cases where there was a pending map change there shouldn't be.
Browse files Browse the repository at this point in the history
  • Loading branch information
splewis committed Jun 6, 2017
1 parent 730b8f5 commit dfe7643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripting/get5.sp
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ public Action Command_EndMatch(int client, int args) {
}

// Call game-ending forwards.
g_MapChangePending = false;
char mapName[PLATFORM_MAX_PATH];
GetCleanMapName(mapName, sizeof(mapName));
Call_StartForward(g_OnMapResult);
Expand Down Expand Up @@ -828,7 +829,6 @@ public Action Event_MatchOver(Event event, const char[] name, bool dontBroadcast
g_TeamSeriesScores[winningTeam]++;

// Handle map end
g_MapChangePending = true;
WriteBackup();

EventLogger_MapEnd(winningTeam);
Expand Down

0 comments on commit dfe7643

Please sign in to comment.