Remove stuntscore in TM2020
Stuntscore doesn't exist in TM2020
This commit is contained in:
parent
9c256643fa
commit
b1712df916
@ -37,10 +37,13 @@ class OnScoresStructure extends CommonScoresStructure {
|
|||||||
$playerScore->setRoundPoints($jsonPlayer->roundpoints);
|
$playerScore->setRoundPoints($jsonPlayer->roundpoints);
|
||||||
$playerScore->setBestRaceTime($jsonPlayer->bestracetime);
|
$playerScore->setBestRaceTime($jsonPlayer->bestracetime);
|
||||||
$playerScore->setBestLapTime($jsonPlayer->bestlaptime);
|
$playerScore->setBestLapTime($jsonPlayer->bestlaptime);
|
||||||
$playerScore->setStuntScore($jsonPlayer->stuntsscore);
|
|
||||||
$playerScore->setBestRaceCheckpoints($jsonPlayer->bestracecheckpoints);
|
$playerScore->setBestRaceCheckpoints($jsonPlayer->bestracecheckpoints);
|
||||||
$playerScore->setBestLapCheckpoints($jsonPlayer->bestlapcheckpoints);
|
$playerScore->setBestLapCheckpoints($jsonPlayer->bestlapcheckpoints);
|
||||||
|
|
||||||
|
// removed in TM2020
|
||||||
|
if (property_exists($jsonPlayer, 'stuntsscore')) {
|
||||||
|
$playerScore->setStuntScore($jsonPlayer->stuntsscore);
|
||||||
|
}
|
||||||
// removed in TM2020
|
// removed in TM2020
|
||||||
if (property_exists($jsonPlayer, 'bestracerespawns')) {
|
if (property_exists($jsonPlayer, 'bestracerespawns')) {
|
||||||
$playerScore->setBestRaceRespawns($jsonPlayer->bestracerespawns);
|
$playerScore->setBestRaceRespawns($jsonPlayer->bestracerespawns);
|
||||||
@ -71,4 +74,4 @@ class OnScoresStructure extends CommonScoresStructure {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user