1
0
mirror of https://github.com/lexogrine/cs2-react-hud.git synced 2025-12-10 02:42:49 +01:00

Fix round number (again)

It was already fixed in 4380d190fdfc5f493a8297a52e2dbecfd70912dc, but f88baa5fc9db84e7874526de9b10413f455ef49c commit reverted it.
This commit is contained in:
Attila 2023-12-28 19:15:09 +01:00 committed by GitHub
parent 656fce7e4f
commit c31606706e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,10 +35,10 @@ export interface Timer {
} }
const getRoundLabel = (mapRound: number) => { const getRoundLabel = (mapRound: number) => {
const round = mapRound + 1; const round = mapRound + 1;
if (round <= 30) { if (round <= 24) {
return `Round ${round}/30`; return `Round ${round}/24`;
} }
const additionalRounds = round - 30; const additionalRounds = round - 24;
const OT = Math.ceil(additionalRounds/6); const OT = Math.ceil(additionalRounds/6);
return `OT ${OT} (${additionalRounds - (OT - 1)*6}/6)`; return `OT ${OT} (${additionalRounds - (OT - 1)*6}/6)`;
} }