diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-10-11 18:55:32 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-10-13 14:03:40 +0200 |
commit | f79b90a6c0962f398ea17f1f47b99697baad7a3e (patch) | |
tree | b022c1b846ce69d4633b2612791c2f6269b93e32 /modules/multiplayer/multiplayer_synchronizer.h | |
parent | 51f81e1c88499f04d2ebdcc0be0b34e73f5e90eb (diff) | |
download | redot-engine-f79b90a6c0962f398ea17f1f47b99697baad7a3e.tar.gz |
[MP] Fix synchronizer init and reset
Fix set_multiplayer_authority not resetting the synchronizer.
Fix the reset function not clearing the watchers state.
Skip wrap around check for the first sync packet after reset.
Diffstat (limited to 'modules/multiplayer/multiplayer_synchronizer.h')
-rw-r--r-- | modules/multiplayer/multiplayer_synchronizer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/multiplayer/multiplayer_synchronizer.h b/modules/multiplayer/multiplayer_synchronizer.h index 99613de29b..192d7a5920 100644 --- a/modules/multiplayer/multiplayer_synchronizer.h +++ b/modules/multiplayer/multiplayer_synchronizer.h @@ -66,6 +66,7 @@ private: uint64_t last_sync_usec = 0; uint16_t last_inbound_sync = 0; uint32_t net_id = 0; + bool sync_started = false; static Object *_get_prop_target(Object *p_obj, const NodePath &p_prop); void _start(); |