From e63a70d1b0f947e581d206188700ac170a52ec91 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 14 Nov 2024 01:03:32 +0000 Subject: Reverse order of last boundary part addition It's the manual last end, shame it has to be weird. --- game/geoData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game') diff --git a/game/geoData.cpp b/game/geoData.cpp index c228e2a..bf9aee0 100644 --- a/game/geoData.cpp +++ b/game/geoData.cpp @@ -536,7 +536,7 @@ GeoData::setHeights(const std::span triangleStrip, const triangle++; }; std::ranges::for_each(newVerts | std::views::adjacent<3>, doBoundary); - doBoundaryPart(newVerts.back(), *++newVerts.rbegin(), *strip.rbegin()); + doBoundaryPart(*++newVerts.rbegin(), newVerts.back(), *strip.rbegin()); std::set done; std::set todo; -- cgit v1.2.3