diff options
| author | Fabio Alessandrelli | 2016-09-30 01:23:54 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli | 2016-09-30 02:48:25 +0200 |
| commit | 8b9e5453a57e873d43d748d9acf16be4b7a1aa19 (patch) | |
| tree | fe3b26cb7572efd5b393dbab569e55d473127577 /modules/enet/networked_multiplayer_enet.h | |
| parent | cb7661df942cfb423c5fe5090c1c114489905c34 (diff) | |
| download | godot-8b9e5453a57e873d43d748d9acf16be4b7a1aa19.tar.gz godot-8b9e5453a57e873d43d748d9acf16be4b7a1aa19.tar.zst godot-8b9e5453a57e873d43d748d9acf16be4b7a1aa19.zip | |
Use 2 different ENet channels for reliable/unreliable packets
This avoids stalling other sequenced but unreliable packets
(i.e. UNRELIABLE_ORDERED) when sending RELIABLE packets.
Diffstat (limited to '')
| -rw-r--r-- | modules/enet/networked_multiplayer_enet.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/enet/networked_multiplayer_enet.h b/modules/enet/networked_multiplayer_enet.h index 59863c1f7..f64db4561 100644 --- a/modules/enet/networked_multiplayer_enet.h +++ b/modules/enet/networked_multiplayer_enet.h @@ -23,6 +23,13 @@ private: SYSMSG_REMOVE_PEER }; + enum { + SYSCH_CONFIG, + SYSCH_RELIABLE, + SYSCH_UNRELIABLE, + SYSCH_MAX + }; + bool active; bool server; |
