You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix MultiplayerSynchronizer::update_outbound_sync_time when replication_interval is not 0
This commit is contained in:
@@ -118,6 +118,10 @@ void MultiplayerSynchronizer::set_net_id(uint32_t p_net_id) {
|
||||
}
|
||||
|
||||
bool MultiplayerSynchronizer::update_outbound_sync_time(uint64_t p_msec) {
|
||||
if (last_sync_msec == p_msec) {
|
||||
// last_sync_msec has been updated on this frame.
|
||||
return true;
|
||||
}
|
||||
if (p_msec >= last_sync_msec + interval_msec) {
|
||||
last_sync_msec = p_msec;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user