The previously reported bug was a problem that the region information was "lost" when the camera was rotated, but this bug is different. (´・ω・｀)
There are four camera angles, but only the default angle can display the correct region information. If you change to another direction, all regions will be replaced with default regions.
The region state is restored when the camera position returns to the initial state after rotating 4 times.
I've investigated this a bit, but the regional rotation algorithm is completely broken.
The coordinates of the regions before the map rotation in demo.sve are as follows.
The coordinates of each region according to the debug output when rotated once are as follows.
It should be noted that these coordinates represent the upper left and lower right.
The demo map is an elongated map with a width of only 31 tiles, but the region area is much wider than that.
32 or more of the x coordinate is outside the map area. That is, all regions are outside the map.
For example, Erin is the upper left area of the map and must contain (0,0)-(31,64) after rotation.
I think I'm fortunate enough to have successfully fixed this bug.
I would appreciate it if you could check it.
However, if you have already rotated the map and the region information is corrupted, it will not be repaired automatically.
Thank you - now incorporated.