mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 14:12:47 +00:00
Merge branch 'tally-laps-one-indexed' into 'master'
level_tally_t::Init - Fix K_RaceLapCount map indexing issue See merge request KartKrew/Kart!1475
This commit is contained in:
commit
6c962ad7a9
1 changed files with 3 additions and 6 deletions
|
|
@ -330,14 +330,11 @@ void level_tally_t::Init(player_t *player)
|
|||
if ((gametypes[gt]->rules & GTR_CIRCUIT) == GTR_CIRCUIT)
|
||||
{
|
||||
laps = player->lapPoints;
|
||||
totalLaps = K_RaceLapCount(gamemap-1);
|
||||
|
||||
if (inDuel == true)
|
||||
if (inDuel == false)
|
||||
{
|
||||
totalLaps = K_RaceLapCount(gamemap);
|
||||
}
|
||||
else
|
||||
{
|
||||
totalLaps = K_RaceLapCount(gamemap) * 2;
|
||||
totalLaps *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue