1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

ENet code cleanup and changes from review.

This commit is contained in:
Fabio Alessandrelli
2017-03-23 13:27:41 +01:00
parent ed075c4c80
commit 0450e6539e
4 changed files with 61 additions and 9 deletions

View File

@@ -163,13 +163,6 @@ void NetworkedMultiplayerENet::poll() {
break;
}
IP_Address ip;
#ifdef GODOT_ENET
ip.set_ipv6((uint8_t *)&(event.peer->address.host));
#else
ip.set_ipv4((uint8_t *)&(event.peer->address.host));
#endif
int *new_id = memnew(int);
*new_id = event.data;