summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2005-12-20 00:50:16 +0000
committermatthijs <matthijs@openttd.org>2005-12-20 00:50:16 +0000
commit8f873d4ece827d8f95f8ded0f49b47dbe5942506 (patch)
tree4ebb4a1157127f96b6b0b99947f2020e7c54069e /economy.c
parentbb90e51ac50e1b3adae5a5c93e9b84a6ff7ae0df (diff)
downloadopenttd-8f873d4ece827d8f95f8ded0f49b47dbe5942506.tar.xz
(svn r3321) - Fix: A wrong use of the map m5 bits, where a previously calculated "bits" variable should have been used. This resulted in the pathfinder imagining junctions, which negatively affects performance somewhat (Darkvater).
- Fix: [ 1346377 ] Limiting the "depth" of the search tree fixes this assert. Though the above fix seems to fix this bug too, it will only make it less likely to occur. The problem here was the StackedItem::depth field overflowing, which made the pathfinder think it was at the first tile again. Adding an explicit overflow check should fix this.
Diffstat (limited to 'economy.c')
0 files changed, 0 insertions, 0 deletions