News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Cannot switch to previous depot

Started by Vladki, February 20, 2017, 10:24:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vladki

Hello,

when I open a depot window, there are two "arrows" on top left that let me access next and previous depot. However, only the "next" (right) arrow works. The left arrow does nothing. And even the right arrow, does not wrap around, and stays on the "last" depot in a row.

jamespetts

This turns out to be a very difficult issue to resolve, and very odd. The problem appears to be that a method which works in Standard (being depot_t *depot_t::find_depot( koord3d start, const obj_t::typ depot_type, const player_t *player, bool forward)) fails in Extended when the last parameter, "forward", is false when the same method, with exactly the same code, works in Standard. This is rather mystifying, I am afraid.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.