Follow-up Comment #3, bug #22090 (project wesnoth):

This is a tricky one, and I think requires someone who has actual working
knowledge of the editor.

I had a go at removing villages from the gamemap::villages_ vector, since
gamemap::on_board() will already let you know if a given map_location is
within the resized board or not. This worked okay but I couldn't get the
villages count at the top of the screen to update at the appropriate time.

Then there's the additional complication of villages that stay on the map
after shrinking, but are right on the border and so can still be present if
extending the map afterwards. I thought about forcing villages on the map
border to become background terrain to force their deletion, but couldn't work
out the various functions and event handlers. Even the interoperation between
the tiles_ t_map and tdata_ tdata_cache isn't clear... not that they are very
helpful member names either - it isn't clear that t_ in this context refers to
terrain (I think).

So I'm giving up on this for now. I've stared at it all day hoping to get a
breakthrough... but have nothing to show for it. ):

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22090>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to