Azgaar / Fantasy-Map-Generator

Web application generating interactive and highly customizable maps

Home Page:https://azgaar.github.io/Fantasy-Map-Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Burg regeneration issue

MihaVar opened this issue · comments

Describe the bug
Can't regenerate burgs normally, instead they are placed in one spot. Also after that add/overview burgs buttons don't work

Steps to reproduce

Click on "Regenerate burgs"

Expected behavior

Burgs on map are regenerated and placed in different spots
.map file

Vieileres 2022-12-15-13-45_2.zip
Screenshots

image
image

System

Generator version: 1.88.04
Browser Google Chrome v.101.0.4951.54
OS: Windows 10

Thanks for the report. The issue is fixed.
Root cause: burg0 (array init placeholder) got locked status (during submap?) and hence was copied to regenerated burgs.
Solution: doesn't allow burg0 to be locked. Add a check to locked burgs selection function.