mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-28 08:30:31 +07:00
ded648f6b1
* Formatting * Fix minimap actor leak The minimap update method tried to update borders only on tiles that changed owners, which is fine if that was what it did. But only the "remove old borders" part was in the "changed owners" branch, not "add new borders", so what actually happened was that each update all borders where the tile owner didn't change got added again, which is basically all borders. This caused a huge slowdown the more actions you do on the world map in a single turn (i.e. move a lot of units). When a new turn starts, the minimap gets completely thrown away and rebuilt, so then it's fine again. This changes the minimap to properly add/remove borders when something actually changes. * Refactor: Split classes up into separate files Also, split up the Minimap.init method into smaller methods to make it a bit more readable * Finish up comment |
||
---|---|---|
.. | ||
src/com/unciv | ||
build.gradle.kts |