(October 14th, 2024, 10:18)a little bird Wrote:(October 10th, 2024, 17:17)ljubljana Wrote: the fact that the same tile behaved differently on two consecutive turns
On T187 the two tiles in question were surrounded by greenline's tiles on all sides, and on T188 the tiles above were neutral.
From the code if a tile is not within the radius of another city of the same player while being within the radius of a city of another player, it will be forced to be unowned but you need to check for how long (and how exactly that's implemented). This is what led to the difference between the two turns.
oh, so they are! so the following process would account for the bug: tiles owned only by the captured city are set to unowned unless
1. they are in range of another city
2. they are surrounded by the owner's tiles on all sides and are NOT first-ring to the captured city
furthermore we can guess that the behavior that sets a tile to unowned in cases other than 1) occurs somewhere other than the screenshotted code, because, as you say, it looks like the tiles in range of lungfish stayed neutral for a full turn, even after greenline recaptured, which was not true of the first-ring tiles at RFT....
sorry i haven't had a ton of time for this lately, but i am hoping to find some this week sometime
i'll have to check if this accords with other instances of the bug, but even if i can't fix it easily (my grasp of C++ is shaky at best...), just being able to predict it would be very useful