diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-23 13:26:18 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-23 13:26:18 +0000 |
commit | d65bec3667e0344d71223c581ce09e8573191294 (patch) | |
tree | ad7462d183104235174798f467ede2a8520bc4f5 /game | |
parent | Set terrain heights when creating new network links (diff) | |
download | ilt-d65bec3667e0344d71223c581ce09e8573191294.tar.bz2 ilt-d65bec3667e0344d71223c581ce09e8573191294.tar.xz ilt-d65bec3667e0344d71223c581ce09e8573191294.zip |
Use correct triangle when creating surface boundary ends
Diffstat (limited to 'game')
-rw-r--r-- | game/geoData.cpp | 4 |
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; |