private static bool CheckPlayerControllerIdForConnection(NetworkConnection conn, short playerControllerId)
{
if (playerControllerId < 0)
{
if (LogFilter.logError)
{
Debug.LogError("AddPlayer: playerControllerId of " + playerControllerId + " is negative");
}
return false;
}
if (playerControllerId > 0x20)
{
if (LogFilter.logError)
{
Debug.Log(string.Concat(new object[] { "AddPlayer: playerControllerId of ", playerControllerId, " is too high. max is ", 0x20 }));
}
return false;
}
if ((playerControllerId > 0x10) && LogFilter.logWarn)
{
Debug.LogWarning("AddPlayer: playerControllerId of " + playerControllerId + " is unusually high");
}
return true;
}