summaryrefslogtreecommitdiff
path: root/game/geoData.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-23 13:26:18 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-23 13:26:18 +0000
commitd65bec3667e0344d71223c581ce09e8573191294 (patch)
treead7462d183104235174798f467ede2a8520bc4f5 /game/geoData.cpp
parentSet terrain heights when creating new network links (diff)
downloadilt-d65bec3667e0344d71223c581ce09e8573191294.tar.bz2
ilt-d65bec3667e0344d71223c581ce09e8573191294.tar.xz
ilt-d65bec3667e0344d71223c581ce09e8573191294.zip
Use correct triangle when creating surface boundary ends
Diffstat (limited to 'game/geoData.cpp')
-rw-r--r--game/geoData.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/geoData.cpp b/game/geoData.cpp
index d8caff7..9516a95 100644
--- a/game/geoData.cpp
+++ b/game/geoData.cpp
@@ -545,8 +545,8 @@ GeoData::setHeights(const std::span<const GlobalPosition3D> triangleStrip, const
triangle++;
};
std::ranges::for_each(newVerts | std::views::adjacent<3>, doBoundary);
- doBoundaryPart(*++newVerts.begin(), newVerts.front(), *strip.rbegin());
- doBoundaryPart(*++newVerts.rbegin(), newVerts.back(), *strip.rbegin());
+ doBoundaryPart(*++newVerts.begin(), newVerts.front(), strip.front());
+ doBoundaryPart(*++newVerts.rbegin(), newVerts.back(), strip.back());
std::set<HalfedgeHandle> done;
std::set<HalfedgeHandle> todo;