improved mapmanager

This commit is contained in:
kremsy
2014-01-10 12:22:37 +01:00
parent a925f423a8
commit b37a1ed3b7
3 changed files with 30 additions and 32 deletions

View File

@ -687,7 +687,8 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$this->maniaControl->mapManager->addMapFromMx($mapId, $player->login);
break;
case self::ACTION_ERASE_MAP:
$this->maniaControl->mapManager->removeMap($mapId, $actionArray[3]);
//actionArray[3] = mapUid
$this->maniaControl->mapManager->removeMap($player, $actionArray[3]);
$this->showMapList($player);
break;
case self::ACTION_SWITCH_MAP: