From aefdcac08b7d9e558b2357318fff035cb41451bf Mon Sep 17 00:00:00 2001 From: kremsy Date: Fri, 24 Jan 2014 15:32:34 +0100 Subject: [PATCH] small fix --- application/core/Players/PlayerManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/core/Players/PlayerManager.php b/application/core/Players/PlayerManager.php index ee289882..6928cbbd 100644 --- a/application/core/Players/PlayerManager.php +++ b/application/core/Players/PlayerManager.php @@ -177,7 +177,6 @@ class PlayerManager implements CallbackListener { } $player->teamId = $callback[1][0]["TeamId"]; - $player->isSpectator = $callback[1][0]["SpectatorStatus"]; $player->ladderRank = $callback[1][0]["LadderRanking"]; $prevJoinState = $player->hasJoinedGame; @@ -200,6 +199,7 @@ class PlayerManager implements CallbackListener { // Trigger own PlayerJoined callback $this->maniaControl->callbackManager->triggerCallback(self::CB_PLAYERJOINED, array(self::CB_PLAYERJOINED, $player)); } + // Trigger own callback $this->maniaControl->callbackManager->triggerCallback(self::CB_PLAYERINFOCHANGED, array(self::CB_PLAYERINFOCHANGED)); }