mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 03:51:50 +00:00
K_PointLimitForGametype: Fix up cv_pointlimit handling
- K_Cooperative is 1st priority - K_CanChangeRules is 2nd
This commit is contained in:
parent
fe26af8187
commit
c673bb3ea9
1 changed files with 5 additions and 5 deletions
10
src/k_kart.c
10
src/k_kart.c
|
|
@ -12477,16 +12477,16 @@ UINT32 K_PointLimitForGametype(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cv_pointlimit.value != -1)
|
|
||||||
{
|
|
||||||
return cv_pointlimit.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (K_Cooperative())
|
if (K_Cooperative())
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (K_CanChangeRules(true) == true && cv_pointlimit.value != -1)
|
||||||
|
{
|
||||||
|
return cv_pointlimit.value;
|
||||||
|
}
|
||||||
|
|
||||||
if ((gametyperules & battleRules) == battleRules) // why isn't this just another GTR_??
|
if ((gametyperules & battleRules) == battleRules) // why isn't this just another GTR_??
|
||||||
{
|
{
|
||||||
INT32 i;
|
INT32 i;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue