small fix

This commit is contained in:
kremsy authored and Steffen Schröder committed 2014-05-01 17:35:22 +02:00
1 parent b2c2c98c78
commit fb1f12b8b4
2 files changed
+1 -3

No files matched your search

-3
View File
@@ -56,10 +56,7 @@ class Map {
$this->copperPrice = $mpMap->copperPrice;
$this->mapType = $mpMap->mapType;
$this->mapStyle = $mpMap->mapStyle;
if(isset($mpMap->nbCheckpoints)) {
$this->nbCheckpoints = $mpMap->nbCheckpoints;
}
$this->authorNick = $this->authorLogin;
}
+1
View File
@@ -376,6 +376,7 @@ class MapManager implements CallbackListener {
if (array_key_exists($rpcMap->uId, $this->maps)) {
$this->currentMap = $this->maps[$rpcMap->uId];
$this->currentMap->nbCheckpoints = $rpcMap->nbCheckpoints;
return true;
}
$map = $this->initializeMap($rpcMap);