Added setMatchPoints() to Trackmania OnScoresStructure, Fixed a Maplist search bug
This commit is contained in:
parent
4cc523800a
commit
a3d7bdbb8a
@ -35,6 +35,7 @@ class OnScoresStructure extends CommonScoresStructure {
|
|||||||
$playerScore->setRank($jsonPlayer->rank);
|
$playerScore->setRank($jsonPlayer->rank);
|
||||||
$playerScore->setRoundPoints($jsonPlayer->roundpoints);
|
$playerScore->setRoundPoints($jsonPlayer->roundpoints);
|
||||||
$playerScore->setMapPoints($jsonPlayer->mappoints);
|
$playerScore->setMapPoints($jsonPlayer->mappoints);
|
||||||
|
$playerScore->setMatchPoints($jsonPlayer->matchpoints);
|
||||||
$playerScore->setBestRaceTime($jsonPlayer->bestracetime);
|
$playerScore->setBestRaceTime($jsonPlayer->bestracetime);
|
||||||
$playerScore->setBestLapTime($jsonPlayer->bestlaptime);
|
$playerScore->setBestLapTime($jsonPlayer->bestlaptime);
|
||||||
$playerScore->setStuntScore($jsonPlayer->stuntsscore);
|
$playerScore->setStuntScore($jsonPlayer->stuntsscore);
|
||||||
|
@ -778,7 +778,11 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
|
|||||||
$player = $this->maniaControl->getPlayerManager()->getPlayer($login);
|
$player = $this->maniaControl->getPlayerManager()->getPlayer($login);
|
||||||
|
|
||||||
$searchString = $callback[1][3][0]['Value'];
|
$searchString = $callback[1][3][0]['Value'];
|
||||||
$maps = $this->maniaControl->getMapManager()->searchMapsByAuthor($searchString);
|
if ($searchString) {
|
||||||
|
$maps = $this->maniaControl->getMapManager()->searchMapsByAuthor($searchString);
|
||||||
|
} else {
|
||||||
|
$maps = null;
|
||||||
|
}
|
||||||
|
|
||||||
$this->showMapList($player, $maps);
|
$this->showMapList($player, $maps);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user