We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 272ee42 commit 7d4119dCopy full SHA for 7d4119d
webapp/src/Utils/Scoreboard/SingleTeamScoreboard.php
@@ -41,17 +41,7 @@ public function __construct(
41
42
protected function calculateScoreboard(): void
43
{
44
- $rankCacheForTeam = null;
45
- if ($this->rankCache !== null && count($this->rankCache) > 0) {
46
- $rankCacheForTeam = $this->rankCache[0];
47
- }
48
-
49
$teamScore = $this->scores[$this->team->getTeamid()];
50
- if ($rankCacheForTeam !== null) {
51
- $teamScore->numPoints += $rankCacheForTeam->getPointsRestricted();
52
- $teamScore->totalTime += $rankCacheForTeam->getTotaltimeRestricted();
53
- $teamScore->totalRuntime += $rankCacheForTeam->getTotalruntimeRestricted();
54
55
$teamScore->rank = $this->teamRank;
56
57
// Loop all info the scoreboard cache and put it in our own data structure.
0 commit comments