Skip to content

Commit

Permalink
Fix overtime enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
JensForstmann authored Oct 8, 2023
1 parent 2837436 commit 1d928bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/matchMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const startMatch = async (match: Match.Match, matchMap: IMatchMap) => {
};

const refreshOvertimeAndMaxRoundsSettings = async (match: Match.Match, matchMap: IMatchMap) => {
matchMap.overTimeEnabled = !!(await Match.getConfigVar(match, 'mp_overtime_enable'));
matchMap.overTimeEnabled = (await Match.getConfigVar(match, 'mp_overtime_enable')) === "true";
matchMap.overTimeMaxRounds = parseInt(await Match.getConfigVar(match, 'mp_overtime_maxrounds'));
matchMap.maxRounds = parseInt(await Match.getConfigVar(match, 'mp_maxrounds'));
MatchService.scheduleSave(match);
Expand Down

0 comments on commit 1d928bc

Please sign in to comment.