The International Simutrans Forum


Author Topic: Cannot switch to previous depot  (Read 886 times)

0 Members and 1 Guest are viewing this topic.

Offline Vladki

  • Devotee
  • *
  • Posts: 3691
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Cannot switch to previous depot
« on: February 20, 2017, 10:24:28 PM »

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.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20700
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Cannot switch to previous depot
« Reply #1 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.