The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ceeac on May 22, 2019, 06:38:37 AM

Title: Fix for jumping vehicles when new world dialogue is open
Post by: ceeac on May 22, 2019, 06:38:37 AM
This patch fixes "jumping" vehicles when the new world dialogue is open. The dialogue display routine calls calls karte_t::sync_step, and karte_t::step on every sixth frame. karte_t::step however also calls sync_step via interrupt_check because the last sync_step time is not updated. This patch fixes this behaviour.
Title: Re: Fix for jumping vehicles when new world dialogue is open
Post by: Vladki on May 22, 2019, 07:00:01 AM
This might be related to the fact that opening new world dialogue while playing a network game, guaranteed desync after a while (even if you close the dialog). Same for save and load dialogs.
Title: Re: Fix for jumping vehicles when new world dialogue is open
Post by: prissi on May 23, 2019, 06:24:52 AM
The desync happens because you are leaving the main loop when the new world dialoge is open and will not be fixed by this patch. Anyway, thanks and incorporated in r 8764