Skip to content

Commit

Permalink
Use current map when skip veto and no maplist (splewis#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
sontrinh authored May 3, 2020
1 parent 2cb9233 commit 75da22b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripting/get5/matchconfig.sp
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,16 @@ static void LoadDefaultMapList(ArrayList list) {
list.PushString("de_nuke");
list.PushString("de_overpass");
list.PushString("de_train");

if (g_SkipVeto) {
char currentMap[PLATFORM_MAX_PATH];
GetCurrentMap(currentMap, sizeof(currentMap));

int currentMapIndex = list.FindString(currentMap);
if (currentMapIndex > 0) {
list.SwapAt(0, currentMapIndex);
}
}
}

public void SetMatchTeamCvars() {
Expand Down

0 comments on commit 75da22b

Please sign in to comment.