Skip to content

Commit

Permalink
Fixed crash & round number
Browse files Browse the repository at this point in the history
  • Loading branch information
osztenkurden committed Sep 29, 2023
1 parent 25cd6b7 commit 4380d19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lexogrine_cs2_hud",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "./",
"private": true,
"dependencies": {
Expand All @@ -11,7 +11,7 @@
"@types/react-dom": "17.0.11",
"@types/simple-peer": "^9.11.3",
"buffer": "^6.0.3",
"csgogsi-socket": "^2.7.1",
"csgogsi-socket": "^2.7.2",
"query-string": "^6.12.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
6 changes: 3 additions & 3 deletions src/HUD/MatchBar/MatchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ export default class TeamBox extends React.Component<IProps, IState> {
getRoundLabel = () => {
const { map } = this.props;
const round = map.round + 1;
if (round <= 30) {
return `Round ${round}/30`;
if (round <= 24) {
return `Round ${round}/24`;
}
const additionalRounds = round - 30;
const additionalRounds = round - 24;
const OT = Math.ceil(additionalRounds/6);
return `OT ${OT} (${additionalRounds - (OT - 1)*6}/6)`;
}
Expand Down

0 comments on commit 4380d19

Please sign in to comment.