Fourth option would be to check for multiplayer. Here is some pseudo-code
function wait_for_roadbuilding() if not multiplayer then _await_animation() while (wl.ui.MapView().is_building_road) do sleep(2000) end end end Is there a function to check for multiplayer? -- https://code.launchpad.net/~widelands-dev/widelands/bug-1811583-desync-with-territorial/+merge/362272 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1811583-desync-with-territorial. _______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp