SWY1985 / CivOne

An open source implementation of Sid Meier's Civilization.
http://www.civone.org/
Creative Commons Zero v1.0 Universal
245 stars 49 forks source link

Clicking a point on the minimap does not move the viewport to that point unless it is within the current view #263

Closed AlexFolland closed 7 years ago

AlexFolland commented 7 years ago

Clicking a point on the minimap does not move the viewport to that point unless the clicked point is within the current view. Also, after clicking such a point on the minimap, clicking a tile within the viewport moves the viewport to a tile relative to the minimap-clicked point rather than the tile clicked in the viewport.

SWY1985 commented 7 years ago

The minimap is currently not working correctly and I will attempt to get it fixed in the next preview version.

AlexFolland commented 7 years ago

It seems to me that it is moving the viewport to that location without updating the screen to reflect the move. The clue is that clicking somewhere inside the viewport after clicking the minimap location acts as if the viewport had been updated.

AlexFolland commented 7 years ago

Some more information about this one: it seems that the only thing that matters is whether the minimap click point is within viewport range of the currently in-control unit.

SWY1985 commented 7 years ago

The map is probably moving, but there's no update signal given to the screen. I will start working on this now.