Actions
Bug #408
closedAI: cityresult_fill() assert failure when no known free tiles in city area
Start date:
04/07/2024
Due date:
% Done:
0%
Estimated time:
Description
cityresult_fill() wants to count value for one another tile in addition to the city center. When it search for the best tile from the city area, unknown and already worked tiles are set to have a value of -1. If there is no other kind of tiles at all, that value of -1 gets used as the value of the best tile. This likely cause other bugs before, but in the end it can trip the assert in the end of the function making sure that total value is positive.
Files
Updated by Marko Lindqvist 9 months ago
The problem is not that such -1 tile gets used as the "best other", but that it gets counted to the "value of all remaining" tiles.
Updated by Marko Lindqvist 9 months ago
- File 0053-AI-Fix-bad-city-spot-value-calculation-with-unknown-.patch 0053-AI-Fix-bad-city-spot-value-calculation-with-unknown-.patch added
- Status changed from New to In Review
- Assignee set to Marko Lindqvist
Actions