bestracerespawns and bestlaprespawns removed from Scores-Callback in the new game
This commit is contained in:
parent
2f57ee3d6c
commit
9711937a1e
@ -38,10 +38,18 @@ class OnScoresStructure extends CommonScoresStructure {
|
|||||||
$playerScore->setBestRaceTime($jsonPlayer->bestracetime);
|
$playerScore->setBestRaceTime($jsonPlayer->bestracetime);
|
||||||
$playerScore->setBestLapTime($jsonPlayer->bestlaptime);
|
$playerScore->setBestLapTime($jsonPlayer->bestlaptime);
|
||||||
$playerScore->setStuntScore($jsonPlayer->stuntsscore);
|
$playerScore->setStuntScore($jsonPlayer->stuntsscore);
|
||||||
$playerScore->setBestRaceRespawns($jsonPlayer->bestracerespawns);
|
|
||||||
$playerScore->setBestRaceCheckpoints($jsonPlayer->bestracecheckpoints);
|
$playerScore->setBestRaceCheckpoints($jsonPlayer->bestracecheckpoints);
|
||||||
$playerScore->setBestLapRespawns($jsonPlayer->bestlaprespawns);
|
|
||||||
$playerScore->setBestLapCheckpoints($jsonPlayer->bestlapcheckpoints);
|
$playerScore->setBestLapCheckpoints($jsonPlayer->bestlapcheckpoints);
|
||||||
|
|
||||||
|
// removed in TM2020
|
||||||
|
if (property_exists($jsonPlayer, 'bestracerespawns')) {
|
||||||
|
$playerScore->setBestRaceRespawns($jsonPlayer->bestracerespawns);
|
||||||
|
}
|
||||||
|
// removed in TM2020
|
||||||
|
if (property_exists($jsonPlayer, 'bestlaprespawns')) {
|
||||||
|
$playerScore->setBestLapRespawns($jsonPlayer->bestlaprespawns);
|
||||||
|
}
|
||||||
|
|
||||||
//New attributes in 2.5.0
|
//New attributes in 2.5.0
|
||||||
if (property_exists($jsonPlayer, 'prevracetime')) {
|
if (property_exists($jsonPlayer, 'prevracetime')) {
|
||||||
$playerScore->setPrevRaceTime($jsonPlayer->prevracetime);
|
$playerScore->setPrevRaceTime($jsonPlayer->prevracetime);
|
||||||
|
Loading…
Reference in New Issue
Block a user