b-casey / OpenSMACX

A project to decompile SMAC/X to C++ with the long term goal of creating a full open source clone.
GNU General Public License v3.0
52 stars 4 forks source link

River rendering issue #6

Closed induktio closed 4 years ago

induktio commented 4 years ago

When using the latest versions of Thinker and OpenSMACX together, there seems to be some kind issue which causes all the rivers on the map to relocate multiple times in a turn. This can be seen when the AIs play amongst themselves with the fog of war on. The issue is should not be present during the first few turns, but it becomes apparent when (presumably) the AIs start to build formers and change the landscape. It looks like something triggers the game to randomize river locations each time faction_upkeep runs.

b-casey commented 4 years ago

Tentatively fixed for next release. Issue was how Random class was seeded. Small change I made from vanilla logic seemed to have unintended consequences. Changing it back to original behavior seems to have resolved the issue.

b-casey commented 4 years ago

Fixed as part of 0.2.3 release.