mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
level_tally_t::Init - Fix K_RaceLapCount map indexing issue
gamemap is one-indexed. This needs to change at some point, but this will do for now
This commit is contained in:
parent
03892812e5
commit
0aaf120fdf
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