Can now send delayed updates over unreliable channel

This commit is contained in:
Yousef Khadadeh 2025-12-10 18:30:33 +03:00
parent d266508bbf
commit 6771bfd829
2 changed files with 14 additions and 10 deletions

View file

@ -137,7 +137,7 @@ void GridModifyTool::tool_update() {
selectionMode = 0;
break;
}
drawP.world.delayedUpdateObjectManager.send_update_to_all<WorldGrid>(grid);
drawP.world.delayedUpdateObjectManager.send_update_to_all<WorldGrid>(grid, false);
}
else
selectionMode = 0;
@ -180,5 +180,5 @@ void GridModifyTool::draw(SkCanvas* canvas, const DrawData& drawData) {
}
void GridModifyTool::switch_tool(DrawingProgramToolType newTool) {
NetworkingObjects::generic_serialized_class_send_update_to_all<WorldGrid>(grid);
drawP.world.delayedUpdateObjectManager.send_update_to_all<WorldGrid>(grid, true);
}