HMI-Studios / CivCloneJS

3 stars 1 forks source link

Handle visibility in the map #144

Closed kjniemela closed 1 year ago

kjniemela commented 1 year ago

Since tile visibility should always be updated when a unit moves, there is no reason not to handle it inside map.moveUnitTo. Handling it inside the methods could lead to tiles accidentally not being updated if units are moved without user input, which could conceivably happen.