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:
Gunla 2025-09-09 02:49:09 +00:00 committed by GitLab
commit 4073a313eb
No known key found for this signature in database

View file

@ -462,8 +462,14 @@ UINT8 K_RaceLapCount(INT16 mapNum)
if (cv_numlaps.value == -1)
{
// Use map default
return mapheaderinfo[mapNum]->numlaps;
// Use map default, except on Relaxed
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;