map class nbCheckpoints improved
This commit is contained in:
parent
5504b098ba
commit
d701bb17e6
@ -61,9 +61,11 @@ class Map {
|
||||
$this->copperPrice = $rpc_infos['CopperPrice'];
|
||||
$this->mapType = $rpc_infos['MapType'];
|
||||
$this->mapStyle = $rpc_infos['MapStyle'];
|
||||
//$this->nbCheckpoints = $rpc_infos['NbCheckpoints']; //TODO check if key exists, only for trackmania
|
||||
if (isset($rpc_infos['NbCheckpoints'])) {
|
||||
$this->nbCheckpoints = $rpc_infos['NbCheckpoints'];
|
||||
}
|
||||
|
||||
$this->authorNick = $this->authorLogin; //initialize (if nick from map cant get readen)
|
||||
$this->authorNick = $this->authorLogin;
|
||||
|
||||
$mapsDirectory = $this->maniaControl->server->getMapsDirectory();
|
||||
if ($this->maniaControl->server->checkAccess($mapsDirectory)) {
|
||||
|
Loading…
Reference in New Issue
Block a user