1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

[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.
This commit is contained in:
Fabio Alessandrelli
2023-10-11 18:55:32 +02:00
parent 51f81e1c88
commit f79b90a6c0
2 changed files with 13 additions and 7 deletions

View File

@@ -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();