Re: [patch] synchronize lines
Reply #9 –
I think you are right here. Both arriving and waiting should check. But then some optimization is needed. Maybe add a list of (convoihandle_t, linehandle_t) at each station, which holds the convois that wait for a specific line.
What happens if a convoi waits for a line that does not serve the station? Or if the line was changed not to halt there anymore?
Some improvement in convoi_t::wait_for_other_line(): you could speed this up by using const slist_tpl<tile_t> & haltestelle_t::get_tiles() instead iterating over all possible convois.
And you should really provide some basic gui stuff. Otherwise nobody can test the patch.