Fixed wrong placement of open dedimania session

This commit is contained in:
kremsy 2017-05-22 17:39:22 +02:00
parent 5199842166
commit c0e3979a39
2 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,8 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
$maxRecords = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_MAX_RECORDS);
$dedimaniaData = new DedimaniaData($serverInfo->login, $dedimaniaCode, $serverInfo->path, $packMask, $serverVersion);
$dedimaniaCode = "6372eec4d0";
$dedimaniaData = new DedimaniaData(".escstadium", $dedimaniaCode, $serverInfo->path, $packMask, $serverVersion);
$dedimaniaData->serverMaxRank = $maxRecords;
//New Version

View File

@ -170,7 +170,6 @@ class DedimaniaWebHandler implements TimerListener {
*/
public function checkDedimaniaSession() { //TODO complete check and refactor
if (!$this->dedimaniaData->sessionIdSet()) {
$this->openDedimaniaSession();
return;
}
@ -227,7 +226,7 @@ class DedimaniaWebHandler implements TimerListener {
if ($this->maniaControl->getMapManager()->getCurrentMap()->nbCheckpoints < 2) {
return;
}
// Send dedimania records
$gameMode = $this->getGameModeString();
$times = array();