From 8a1fddf416204099ac7fa62f194795efa4b353b9 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 4 Jan 2014 00:11:12 +0100 Subject: [PATCH] small fixes --- application/core/Players/PlayerList.php | 3 ++- application/core/Statistics/StatisticCollector.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/core/Players/PlayerList.php b/application/core/Players/PlayerList.php index e7a690d9..46f56b3b 100644 --- a/application/core/Players/PlayerList.php +++ b/application/core/Players/PlayerList.php @@ -166,7 +166,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener { $lineQuad->setZ(0.001); } - $array = array($i => $x + 5, $listPlayer->nickname => $x + 18, $listPlayer->login => $x + 60, $path => $x + 91); + $array = array($i => $x + 5, $listPlayer->nickname => $x + 18, $listPlayer->login => $x + 60, $path => $x + 91); $frames = $this->maniaControl->manialinkManager->labelLine($playerFrame, $array); /** @var Label $nicknameLabel */ @@ -565,6 +565,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener { case self::ACTION_OPEN_PLAYER_DETAILED: $player = $this->maniaControl->playerManager->getPlayer($adminLogin); $this->maniaControl->playerManager->playerDetailed->showPlayerDetailed($player, $targetLogin); + unset($this->playersListShown[$player->login]); break; case self::ACTION_FORCE_BLUE: $this->maniaControl->playerManager->playerActions->forcePlayerToTeam($adminLogin, $targetLogin, PlayerActions::BLUE_TEAM); diff --git a/application/core/Statistics/StatisticCollector.php b/application/core/Statistics/StatisticCollector.php index 3d093453..00a1b37a 100644 --- a/application/core/Statistics/StatisticCollector.php +++ b/application/core/Statistics/StatisticCollector.php @@ -22,7 +22,7 @@ class StatisticCollector implements CallbackListener { /* * Statistics */ - const STAT_ON_SHOOT = 'Shoots'; + const STAT_ON_SHOOT = 'Shots'; const STAT_ON_NEARMISS = 'Near Misses'; const STAT_ON_CAPTURE = 'Captures'; const STAT_ON_HIT = 'Hits';