Skip to main content
Topic: [patch] unified handling of warenziele in haltestelle_t (Read 2621 times) previous topic - next topic

[patch] unified handling of warenziele in haltestelle_t

This patch unifies the handling of warenziele in haltestelle_t. Now we save for each single catg_index a separate warenziel list. As an effect we don't need some nasty checks anymore (mainly in combination with warenziele_freight - also in the speed sensitive routing of ware_t).

With this patch also the detail window of a stop shows the connected stops separated by category (and no longer lists each single good belonging to this category). I like it more, do you too?

Feel free to test  ;)

 

Re: [patch] unified handling of warenziele in haltestelle_t

Reply #1
A reissue of this patch. The changes to bauer/waren_bauer are optional, but they will decrease the size of warenbauer_t::max_catg_index and thus some memory will be saved.

The next target is to define haltestelle_t::warenziele as a (ordered) vector instead of a slist.