diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-08-19 22:54:02 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-08-19 22:54:53 -0300 |
commit | 2b7aa98d2d4d5efa9b1304086077243c903bbf4d (patch) | |
tree | 9112293b4a116bda89482080e559777b229ecdf9 /modules/enet | |
parent | 38338e90c05e60fbea63ab4b68f14b82406e51ef (diff) |
Changed API to use sequenced packets for UDP (drop old)
Diffstat (limited to 'modules/enet')
-rw-r--r-- | modules/enet/networked_multiplayer_enet.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/enet/networked_multiplayer_enet.cpp b/modules/enet/networked_multiplayer_enet.cpp index 5433afdfdd..dd83a1ac5d 100644 --- a/modules/enet/networked_multiplayer_enet.cpp +++ b/modules/enet/networked_multiplayer_enet.cpp @@ -371,10 +371,10 @@ Error NetworkedMultiplayerENet::put_packet(const uint8_t *p_buffer,int p_buffer_ case TRANSFER_MODE_UNRELIABLE: { packet_flags=ENET_PACKET_FLAG_UNSEQUENCED; } break; - case TRANSFER_MODE_RELIABLE: { - packet_flags=ENET_PACKET_FLAG_RELIABLE; + case TRANSFER_MODE_UNRELIABLE_ORDERED: { + packet_flags=0; } break; - case TRANSFER_MODE_ORDERED: { + case TRANSFER_MODE_RELIABLE: { packet_flags=ENET_PACKET_FLAG_RELIABLE; } break; } @@ -513,7 +513,7 @@ NetworkedMultiplayerENet::NetworkedMultiplayerENet(){ unique_id=0; target_peer=0; current_packet.packet=NULL; - transfer_mode=TRANSFER_MODE_ORDERED; + transfer_mode=TRANSFER_MODE_RELIABLE; connection_status=CONNECTION_DISCONNECTED; } |