summaryrefslogtreecommitdiffstats
path: root/modules/multiplayer/multiplayer_synchronizer.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-10-11 18:55:32 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-10-13 14:03:40 +0200
commitf79b90a6c0962f398ea17f1f47b99697baad7a3e (patch)
treeb022c1b846ce69d4633b2612791c2f6269b93e32 /modules/multiplayer/multiplayer_synchronizer.h
parent51f81e1c88499f04d2ebdcc0be0b34e73f5e90eb (diff)
downloadredot-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.h1
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();