mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
Instead of ineffectually restricting karteliminatelast via console callback exclusively in release builds, just don't use the cvar's value if you can't K_CanChangeRules
This commit is contained in:
parent
9cb6ae647c
commit
e569377ad3
2 changed files with 1 additions and 8 deletions
|
|
@ -7282,13 +7282,6 @@ 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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1525,7 +1525,7 @@ boolean P_CheckRacers(void)
|
|||
{
|
||||
const boolean griefed = (spectateGriefed > 0);
|
||||
|
||||
boolean eliminateLast = cv_karteliminatelast.value;
|
||||
boolean eliminateLast = (!K_CanChangeRules(true) || (cv_karteliminatelast.value != 0));
|
||||
boolean allHumansDone = true;
|
||||
//boolean allBotsDone = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue