Sorry for the late response. Currently, these functions are indeed called for 
all players in parallel within the win condition scripts. But if this would 
change for whichever reason, the game would desync. A point where this happened 
are the functions within ui.lua which call the sleep() function in 
coroutines.lua for only some players. It could happen that a similar construct 
is created at some time in the future again.
I think the comment in coroutines.lua should be something like:

Do not use these functions in multiplayer scripting (scenarios and
winconditions) for only some players of a game. Make sure they are
called for none or all players in parallel, otherwise the games will
desynchronize.
-- 
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

Reply via email to