mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Accounting for minor bug in previous versions: Clean up characters whose rounds would otherwise be permanently stuck under their wins, but only when converting gamedata
This commit is contained in:
parent
d62f199f39
commit
e92725ea86
1 changed files with 5 additions and 4 deletions
|
|
@ -538,11 +538,12 @@ void srb2::load_ng_gamedata()
|
|||
dummyrecord.wins = skinpair.second.records.wins;
|
||||
dummyrecord.rounds = skinpair.second.records.rounds;
|
||||
|
||||
#ifdef DEVELOP
|
||||
// Only good for testing, not for active play... cheaters never prosper!
|
||||
if (dummyrecord.rounds < dummyrecord.wins)
|
||||
// Used to be only for testing, but then there was a bug in release builds! Now conversion only
|
||||
if (minorversion < 2 && dummyrecord.rounds < dummyrecord.wins)
|
||||
{
|
||||
dummyrecord.rounds = dummyrecord.wins;
|
||||
#endif
|
||||
converted = true;
|
||||
}
|
||||
|
||||
dummyrecord.timeplayed = skinpair.second.records.time.total;
|
||||
dummyrecord.modetimeplayed[GDGT_RACE] = skinpair.second.records.time.race;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue