PRoConEvents.MULTIbalancer.MaxDiff C# (CSharp) Method

MaxDiff() private method

private MaxDiff ( ) : int
return int
        private int MaxDiff()
        {
            // maximum difference that is still considered balanced, for normal balancing
            if (fServerInfo == null) return 2;
            PerModeSettings perMode = null;
            String simpleMode = String.Empty;

            if (IsSQDM()) {
            return ((TotalPlayerCount() <= 32) ? 1 : 2);
            }

            perMode = GetPerModeSettings();
            if (!perMode.isDefault)
            return ((GetPopulation(perMode, false) == Population.High) ? 2 : 1);

            return 2;
        }
MULTIbalancer