small fix

This commit is contained in:
kremsy 2014-02-15 23:08:51 +01:00 committed by Steffen Schröder
parent d4b4161f68
commit b2c2c98c78

View File

@ -164,10 +164,13 @@ class PlayerManager implements CallbackListener {
$login = $callback[1][0];
$player = $this->removePlayer($login);
if ($player == null) {
return;
}
// Trigger own callback
$this->maniaControl->callbackManager->triggerCallback(self::CB_PLAYERDISCONNECTED, array(self::CB_PLAYERDISCONNECTED, $player));
if ($player == null || $player->isFakePlayer()) {
if ($player->isFakePlayer()) {
return;
}
@ -240,6 +243,7 @@ class PlayerManager implements CallbackListener {
/**
* Gets the Count of all Player
*
* @return int
*/
public function getPlayerCount() {
@ -255,6 +259,7 @@ class PlayerManager implements CallbackListener {
/**
* Gets the Count of all Spectators
*
* @return int
*/
public function getSpectatorCount() {