small fixes

This commit is contained in:
kremsy 2014-01-04 00:11:12 +01:00
parent ded31811a3
commit 8a1fddf416
2 changed files with 3 additions and 2 deletions

View File

@ -166,7 +166,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
$lineQuad->setZ(0.001); $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); $frames = $this->maniaControl->manialinkManager->labelLine($playerFrame, $array);
/** @var Label $nicknameLabel */ /** @var Label $nicknameLabel */
@ -565,6 +565,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
case self::ACTION_OPEN_PLAYER_DETAILED: case self::ACTION_OPEN_PLAYER_DETAILED:
$player = $this->maniaControl->playerManager->getPlayer($adminLogin); $player = $this->maniaControl->playerManager->getPlayer($adminLogin);
$this->maniaControl->playerManager->playerDetailed->showPlayerDetailed($player, $targetLogin); $this->maniaControl->playerManager->playerDetailed->showPlayerDetailed($player, $targetLogin);
unset($this->playersListShown[$player->login]);
break; break;
case self::ACTION_FORCE_BLUE: case self::ACTION_FORCE_BLUE:
$this->maniaControl->playerManager->playerActions->forcePlayerToTeam($adminLogin, $targetLogin, PlayerActions::BLUE_TEAM); $this->maniaControl->playerManager->playerActions->forcePlayerToTeam($adminLogin, $targetLogin, PlayerActions::BLUE_TEAM);

View File

@ -22,7 +22,7 @@ class StatisticCollector implements CallbackListener {
/* /*
* Statistics * Statistics
*/ */
const STAT_ON_SHOOT = 'Shoots'; const STAT_ON_SHOOT = 'Shots';
const STAT_ON_NEARMISS = 'Near Misses'; const STAT_ON_NEARMISS = 'Near Misses';
const STAT_ON_CAPTURE = 'Captures'; const STAT_ON_CAPTURE = 'Captures';
const STAT_ON_HIT = 'Hits'; const STAT_ON_HIT = 'Hits';