mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
75% lap count in G1
This commit is contained in:
parent
513731e88a
commit
251d812074
1 changed files with 8 additions and 2 deletions
10
src/k_race.c
10
src/k_race.c
|
|
@ -462,8 +462,14 @@ UINT8 K_RaceLapCount(INT16 mapNum)
|
||||||
|
|
||||||
if (cv_numlaps.value == -1)
|
if (cv_numlaps.value == -1)
|
||||||
{
|
{
|
||||||
// Use map default
|
// Use map default, except on Relaxed
|
||||||
return mapheaderinfo[mapNum]->numlaps;
|
|
||||||
|
UINT8 laps = mapheaderinfo[mapNum]->numlaps;
|
||||||
|
|
||||||
|
if (gamespeed == KARTSPEED_EASY && laps > 2)
|
||||||
|
laps = (3*laps + 4 - 1) / 4; // 3/4th laps, rounded
|
||||||
|
|
||||||
|
return laps;
|
||||||
}
|
}
|
||||||
|
|
||||||
return cv_numlaps.value;
|
return cv_numlaps.value;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue