Minor fixes for K_RaceLapCount

- Fix comment in k_race.c
- Use numlaps for level_tally_t::Init instead, as this is the cache'd form and permits us to remove k_race.h from the dependencies
This commit is contained in:
toaster 2023-09-18 17:40:29 +01:00
parent e438ef0a97
commit 3a0d6fd2fb
2 changed files with 2 additions and 3 deletions

View file

@ -423,7 +423,7 @@ void K_RunFinishLineBeam(void)
}
/*--------------------------------------------------
UINT8 K_RaceLapCount(void);
UINT8 K_RaceLapCount(INT16 mapNum);
See header file for description.
--------------------------------------------------*/

View file

@ -17,7 +17,6 @@
#include "k_kart.h"
#include "k_rank.h"
#include "k_grandprix.h"
#include "k_race.h"
#include "k_battle.h"
#include "k_boss.h"
#include "k_specialstage.h"
@ -330,7 +329,7 @@ void level_tally_t::Init(player_t *player)
if ((gametypes[gt]->rules & GTR_CIRCUIT) == GTR_CIRCUIT)
{
laps = player->lapPoints;
totalLaps = K_RaceLapCount(gamemap-1);
totalLaps = numlaps;
if (inDuel == false)
{