mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Merge branch 'lower-g1-laps' into 'master'
75% lap count in G1 See merge request kart-krew-dev/ring-racers-internal!2797
This commit is contained in:
commit
4073a313eb
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