mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 10:29:00 +00:00
Every neighbor sample created a new Vector2D and went through validHeight() and getHeight(). Use plain integer coordinates, an inline bounds check and direct access to the height array instead, which also removes the per-vertex allocation and the setHeight() call.