Merge pull request #6 from jonthekiller/jonthekiller-patch-8

Remove stuntscore in TM2020
This commit is contained in:
jonthekiller 2020-08-02 18:27:34 +02:00 committed by GitHub
commit 9e596f399a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,10 +37,13 @@ class OnScoresStructure extends CommonScoresStructure {
$playerScore->setRoundPoints($jsonPlayer->roundpoints);
$playerScore->setBestRaceTime($jsonPlayer->bestracetime);
$playerScore->setBestLapTime($jsonPlayer->bestlaptime);
$playerScore->setStuntScore($jsonPlayer->stuntsscore);
$playerScore->setBestRaceCheckpoints($jsonPlayer->bestracecheckpoints);
$playerScore->setBestLapCheckpoints($jsonPlayer->bestlapcheckpoints);
// removed in TM2020
if (property_exists($jsonPlayer, 'stuntsscore')) {
$playerScore->setStuntScore($jsonPlayer->stuntsscore);
}
// removed in TM2020
if (property_exists($jsonPlayer, 'bestracerespawns')) {
$playerScore->setBestRaceRespawns($jsonPlayer->bestracerespawns);
@ -71,4 +74,4 @@ class OnScoresStructure extends CommonScoresStructure {
}
}
}
}
}