News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

[patch] unified handling of warenziele in haltestelle_t

Started by gerw, December 04, 2008, 09:57:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gerw

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  ;)

gerw

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.