The International Simutrans Forum

 

Author Topic: Fix for jumping vehicles when new world dialogue is open  (Read 405 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • *
  • Posts: 45
Fix for jumping vehicles when new world dialogue is open
« 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.

Offline Vladki cz

  • Devotee
  • *
  • Posts: 2700
    • My addons, mostly roadsigns
  • Languages: EN, CS
Re: Fix for jumping vehicles when new world dialogue is open
« Reply #1 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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9519
  • Languages: De,EN,JP
Re: Fix for jumping vehicles when new world dialogue is open
« Reply #2 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