mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
e438ef0a97
commit
3a0d6fd2fb
2 changed files with 2 additions and 3 deletions
|
|
@ -423,7 +423,7 @@ void K_RunFinishLineBeam(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*--------------------------------------------------
|
/*--------------------------------------------------
|
||||||
UINT8 K_RaceLapCount(void);
|
UINT8 K_RaceLapCount(INT16 mapNum);
|
||||||
|
|
||||||
See header file for description.
|
See header file for description.
|
||||||
--------------------------------------------------*/
|
--------------------------------------------------*/
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@
|
||||||
#include "k_kart.h"
|
#include "k_kart.h"
|
||||||
#include "k_rank.h"
|
#include "k_rank.h"
|
||||||
#include "k_grandprix.h"
|
#include "k_grandprix.h"
|
||||||
#include "k_race.h"
|
|
||||||
#include "k_battle.h"
|
#include "k_battle.h"
|
||||||
#include "k_boss.h"
|
#include "k_boss.h"
|
||||||
#include "k_specialstage.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)
|
if ((gametypes[gt]->rules & GTR_CIRCUIT) == GTR_CIRCUIT)
|
||||||
{
|
{
|
||||||
laps = player->lapPoints;
|
laps = player->lapPoints;
|
||||||
totalLaps = K_RaceLapCount(gamemap-1);
|
totalLaps = numlaps;
|
||||||
|
|
||||||
if (inDuel == false)
|
if (inDuel == false)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue