Rich2 / openstrat

Cross Platform Scala 2d graphics (but 3d compatible), basic geometry, maps, Earth maps, hex-tiling and strategy library(s).
https://richstrat.com
Apache License 2.0
22 stars 8 forks source link

Wrong terrain in HSep #272

Closed Rich2 closed 8 months ago

Rich2 commented 8 months ago

HSep 114, 9728, in the 1300km terrain is showing Sea rather than SeaIceWinter as intended. Have checked the data settings more than once, but can not find the source of the error.

Rich2 commented 8 months ago

I think I've found the source of the problem.

VRow(113, BendIn(9728, HVUR, 7, siceWin), BendOut(9730, HVUp, 6, siceWin), ThreeUp(9732, 4, 13, 2, siceWin, sea, siceWin)),

When the HSides are set in the ThreeUp no check is made if the sides exist in the HGrid, hence the formula is overflowing into the next row,