The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: Vladki on February 20, 2017, 10:24:28 PM

Title: Cannot switch to previous depot
Post by: Vladki on February 20, 2017, 10:24:28 PM
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.
Title: Re: Cannot switch to previous depot
Post by: jamespetts on April 01, 2017, 10:34:19 PM
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.