mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'eliminatelast-developer-support' into 'master'
DEVELOP: let eliminatelast be turned off in GP See merge request KartKrew/Kart!2109
This commit is contained in:
commit
35d9079140
2 changed files with 4 additions and 0 deletions
|
|
@ -7168,10 +7168,12 @@ void KartEncore_OnChange(void)
|
|||
void KartEliminateLast_OnChange(void);
|
||||
void KartEliminateLast_OnChange(void)
|
||||
{
|
||||
#ifndef DEVELOP
|
||||
if (K_CanChangeRules(false) == false)
|
||||
{
|
||||
CV_StealthSet(&cv_karteliminatelast, cv_karteliminatelast.defaultvalue);
|
||||
}
|
||||
#endif
|
||||
|
||||
P_CheckRacers();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1554,11 +1554,13 @@ boolean P_CheckRacers(void)
|
|||
// Don't do this if someone spectated
|
||||
eliminateLast = false;
|
||||
}
|
||||
#ifndef DEVELOP
|
||||
else if (grandprixinfo.gp == true)
|
||||
{
|
||||
// Always do this in GP
|
||||
eliminateLast = true;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (eliminateLast == true && (numExiting >= numPlaying-1))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue