The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: k47 on November 15, 2025, 01:39:54 PM

Title: fix degrowth bug
Post by: k47 on November 15, 2025, 01:39:54 PM
r11792 introduced an unwanted behaviour. When trying to build a new house, we are not checking if a given tile is empty. The effect of this is that during build step a random skyscraper is replaced by a level 1 house and city gradually 'degrows'.
Title: Re: fix degrowth bug
Post by: prissi on November 15, 2025, 02:02:31 PM
Thank you, well spotted. I found the same problem with roads. The best_pos is not the position that is chosen for the build. A few lines below was the right place. r11797 fixes this.
Title: Re: fix degrowth bug
Post by: k47 on November 15, 2025, 02:15:42 PM
I see. I should pay more attention to that big ATTENTION comment above. :)