From d65bec3667e0344d71223c581ce09e8573191294 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 23 Dec 2024 13:26:18 +0000 Subject: Use correct triangle when creating surface boundary ends --- game/geoData.cpp | 4 ++-- 1 file 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 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 done; std::set todo; -- cgit v1.2.3