mx list limit fix
This commit is contained in:
parent
f6e7535023
commit
6d78fc35f7
@ -1,13 +1,13 @@
|
|||||||
###v0.16x###
|
###v0.161###
|
||||||
#Additions
|
#Additions
|
||||||
- added admin chatcommand //uptime which displays the time since when the server is running
|
- added admin chatcommand //uptime which displays the time since when the server is running
|
||||||
- updated playerhitstructure with new properties
|
- updated playerhitstructure with new properties
|
||||||
|
|
||||||
#Bug Fixes
|
#Bug Fixes
|
||||||
- fixed some z positions to be in front of overlays (especially in Trackmania)
|
- fixed some z positions to be in front of overlays (especially in Trackmania)
|
||||||
|
- fixed limit problem on maniaexchange list
|
||||||
|
|
||||||
###v0.16###
|
###v0.16###
|
||||||
|
|
||||||
#Additions
|
#Additions
|
||||||
- added changelog
|
- added changelog
|
||||||
- added CommunicationManager which acts like a communication interface you can connect to and interact with ManiaControl (also thanks to TGYoshi for some help)
|
- added CommunicationManager which acts like a communication interface you can connect to and interact with ManiaControl (also thanks to TGYoshi for some help)
|
||||||
|
@ -47,7 +47,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
|
|||||||
/*
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const VERSION = '0.160';
|
const VERSION = '0.161';
|
||||||
const API_VERSION = '2013-04-16';
|
const API_VERSION = '2013-04-16';
|
||||||
const MIN_DEDIVERSION = '2014-04-02_18_00';
|
const MIN_DEDIVERSION = '2014-04-02_18_00';
|
||||||
const SCRIPT_TIMEOUT = 10;
|
const SCRIPT_TIMEOUT = 10;
|
||||||
|
@ -294,6 +294,7 @@ class ManiaExchangeManager {
|
|||||||
$mapSearch = new ManiaExchangeMapSearch($this->maniaControl);
|
$mapSearch = new ManiaExchangeMapSearch($this->maniaControl);
|
||||||
$mapSearch->setMapName($name);
|
$mapSearch->setMapName($name);
|
||||||
$mapSearch->setAuthorName($author);
|
$mapSearch->setAuthorName($author);
|
||||||
|
var_dump($maxMapsReturned);
|
||||||
$mapSearch->setMapLimit($maxMapsReturned);
|
$mapSearch->setMapLimit($maxMapsReturned);
|
||||||
$mapSearch->setPrioritySortOrder($sortOrder);
|
$mapSearch->setPrioritySortOrder($sortOrder);
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ class ManiaExchangeMapSearch {
|
|||||||
$this->url = 'http://' . $this->titlePrefix . '.mania-exchange.com/tracksearch2/search?api=on';
|
$this->url = 'http://' . $this->titlePrefix . '.mania-exchange.com/tracksearch2/search?api=on';
|
||||||
|
|
||||||
//Set some defaults:
|
//Set some defaults:
|
||||||
$this->limit = 100;
|
$this->mapLimit = 100;
|
||||||
$this->priorityOrder = self::SEARCH_ORDER_UPDATED_NEWEST;
|
$this->priorityOrder = self::SEARCH_ORDER_UPDATED_NEWEST;
|
||||||
|
|
||||||
//Set Min Exe Build Default for games which are not Trackmania
|
//Set Min Exe Build Default for games which are not Trackmania
|
||||||
@ -223,7 +223,7 @@ class ManiaExchangeMapSearch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$mxMapList = $mxMapList->results;
|
$mxMapList = $mxMapList->results;
|
||||||
|
|
||||||
if ($mxMapList === null) {
|
if ($mxMapList === null) {
|
||||||
trigger_error('Cannot decode searched JSON data');
|
trigger_error('Cannot decode searched JSON data');
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user