9a61647b4add644609b16cd7a2e7cfc73671905b
Root cause: pairEdges returned edges sorted numerically, but getVerticesOnSide interprets "CW walk from edge2 to edge1" — when the pair order flipped (e.g., [NE,NW] vs [E,SE]), the CW walk went the long way vs short way, swapping water/land. Fix: normalize edge pair so CW distance from e1→e2 is always ≤3 steps (the short arc). This makes waterSide=1 consistently mean the same geometric side at every rotation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Description
No description provided
Languages
TypeScript
96.5%
CSS
3.2%
HTML
0.3%