]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/teamplay.qc
scorefactor 0.5 is too much; default to 0.25; also, never cause teams to become empty...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / teamplay.qc
index ed9927dd7ba1f557ba0fd3f5ea17cc2d6ec50571..f37167a498e268b98e4819ffaf099b10c7c5462d 100644 (file)
@@ -664,6 +664,14 @@ float TeamSmallerEqThanTeam(float ta, float tb, entity e)
                }
        }
        
+       // keep teams alive (teams of size 0 always count as smaller, ignoring score)
+       if(ca < 1)
+               if(cb >= 1)
+                       return TRUE;
+       if(ca >= 1)
+               if(cb < 1)
+                       return FALSE;
+
        // first, normalize
        f = max(ca, cb, 1);
        ca /= f;