K_PointLimitForGametype: Fix up cv_pointlimit handling

- K_Cooperative is 1st priority
- K_CanChangeRules is 2nd
This commit is contained in:
toaster 2023-10-25 18:08:00 +01:00
parent fe26af8187
commit c673bb3ea9

View file

@ -12477,16 +12477,16 @@ UINT32 K_PointLimitForGametype(void)
return 0;
}
if (cv_pointlimit.value != -1)
{
return cv_pointlimit.value;
}
if (K_Cooperative())
{
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_??
{
INT32 i;