The International Simutrans Forum


Author Topic: buy citybuilding tool crashing the game  (Read 305 times)

0 Members and 1 Guest are viewing this topic.

Offline Leartin

  • Oh no, not him again!
  • Devotee
  • *
  • Posts: 1590
  • PAK-DEV P192C
  • Languages: DE, EN
buy citybuilding tool crashing the game
« on: January 13, 2021, 06:05:45 PM »
using the citybuilding tool on a non-building causes a crash.
Reason: Latest fix tries to get the first tile before we check whether a building was found.

Additionally, the attached fix also solves:
- cost for buying a citybuilding (before, it referenced the clicking position as first tile, hence buying the lowest tile was cheapest)
- removal tool also refers to first tile now, disabling deletion of buildings other players bought.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10829
  • Languages: De,EN,JP
Re: buy citybuilding tool crashing the game
« Reply #1 on: January 14, 2021, 12:54:58 AM »
THank you, in in r9564