NetworkServer.InternalUpdate doesn't need connectionId to int casts anymore

This commit is contained in:
vis2k 2018-08-20 14:12:01 +02:00
parent f8bfb2093d
commit d056bc4c1e

View File

@ -373,15 +373,15 @@ static internal void InternalUpdate()
{ {
case Telepathy.EventType.Connected: case Telepathy.EventType.Connected:
//Debug.Log("NetworkServer loop: Connected"); //Debug.Log("NetworkServer loop: Connected");
HandleConnect((int)message.connectionId, 0); HandleConnect(message.connectionId, 0);
break; break;
case Telepathy.EventType.Data: case Telepathy.EventType.Data:
//Debug.Log("NetworkServer loop: clientId: " + message.connectionId + " Data: " + BitConverter.ToString(message.data)); //Debug.Log("NetworkServer loop: clientId: " + message.connectionId + " Data: " + BitConverter.ToString(message.data));
HandleData((int)message.connectionId, message.data, 0); HandleData(message.connectionId, message.data, 0);
break; break;
case Telepathy.EventType.Disconnected: case Telepathy.EventType.Disconnected:
//Debug.Log("NetworkServer loop: Disconnected"); //Debug.Log("NetworkServer loop: Disconnected");
HandleDisconnect((int)message.connectionId, 0); HandleDisconnect(message.connectionId, 0);
break; break;
} }
} }