File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
webapp/src/Utils/Scoreboard Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,7 @@ public function __construct(
41
41
42
42
protected function calculateScoreboard (): void
43
43
{
44
- $ rankCacheForTeam = null ;
45
- if ($ this ->rankCache !== null && count ($ this ->rankCache ) > 0 ) {
46
- $ rankCacheForTeam = $ this ->rankCache [0 ];
47
- }
48
-
49
44
$ 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
45
$ teamScore ->rank = $ this ->teamRank ;
56
46
57
47
// Loop all info the scoreboard cache and put it in our own data structure.
You can’t perform that action at this time.
0 commit comments