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

0 Members and 1 Guest are viewing this topic.

Offline Vladki

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

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 16534
  • Total likes: 522
  • Helpful: 180
  • 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.
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.