diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-11-14 01:03:32 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-11-14 01:03:32 +0000 |
commit | e63a70d1b0f947e581d206188700ac170a52ec91 (patch) | |
tree | c4276df856635f3736030bf74e8fb7b93496a5a3 | |
parent | First version rewrite of terrain deformation, much still to do (diff) | |
download | ilt-e63a70d1b0f947e581d206188700ac170a52ec91.tar.bz2 ilt-e63a70d1b0f947e581d206188700ac170a52ec91.tar.xz ilt-e63a70d1b0f947e581d206188700ac170a52ec91.zip |
Reverse order of last boundary part addition
It's the manual last end, shame it has to be weird.
-rw-r--r-- | game/geoData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<const GlobalPosition3D> 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<HalfedgeHandle> done; std::set<HalfedgeHandle> todo; |