[Scummvm-git-logs] scummvm-sites multiplayer -> da62793ba3d87a804123058aea7d60e548b9703c
LittleToonCat
noreply at scummvm.org
Thu Aug 10 02:46:00 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-sites' repo located at https://github.com/scummvm/scummvm-sites .
Summary:
da62793ba3 MULTIPLAYER: Handle new reliable send types.
Commit: da62793ba3d87a804123058aea7d60e548b9703c
https://github.com/scummvm/scummvm-sites/commit/da62793ba3d87a804123058aea7d60e548b9703c
Author: Little Cat (toontownlittlecat at gmail.com)
Date: 2023-08-09T23:45:37-03:00
Commit Message:
MULTIPLAYER: Handle new reliable send types.
Changed paths:
main.py
net_defines.py
diff --git a/main.py b/main.py
index c79428d..aa4479b 100644
--- a/main.py
+++ b/main.py
@@ -217,7 +217,7 @@ if __name__ == "__main__":
return
logging.debug(f"relay_data: Relaying data to host (user 1)")
peers_to_send.add(peer)
- elif type_of_send == PN_SENDTYPE_ALL:
+ elif type_of_send in (PN_SENDTYPE_ALL, PN_SENDTYPE_ALL_RELIABLE, PN_SENDTYPE_ALL_RELIABLE_TIMED):
# Send to all peers
for peer in peers_by_user_id.values():
peers_to_send.add(peer)
diff --git a/net_defines.py b/net_defines.py
index 74ce2e1..b0da88d 100644
--- a/net_defines.py
+++ b/net_defines.py
@@ -25,6 +25,8 @@ PN_SENDTYPE_INDIVIDUAL = 1
PN_SENDTYPE_GROUP = 2
PN_SENDTYPE_HOST = 3
PN_SENDTYPE_ALL = 4
+PN_SENDTYPE_ALL_RELIABLE = 14
+PN_SENDTYPE_ALL_RELIABLE_TIMED = 24
# These are used for sanity checking.
PACKETTYPE_REMOTESTARTSCRIPT = 1
More information about the Scummvm-git-logs
mailing list