metalpriest94 / The_Old_Days

Development of a tile-based strategy-game. Formerly named 'GridBoard'.
0 stars 0 forks source link

Fix MiniMap clicking on small maps #12

Closed metalpriest94 closed 7 years ago

metalpriest94 commented 7 years ago

What to do? Clicking the MiniMap on small maps causes a RuntimeException, preventing the GridScroller thread from working. Also, clicking the MiniMap sends an absolute value to GridScroller (this may cause the exception) though it should regard the scaling of the MiniMap.

metalpriest94 commented 7 years ago

Regarding the MiniMap's tileSize fixed the problem.