From befa5a933cac88cf8bd31f54e09112be0e9ff24f Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 8 Oct 2022 00:26:41 +1100 Subject: [PATCH] - Duke: Fix questionable setup in previous commit to interpolate `SE_20_STRETCH_BRIDGE`. --- source/games/duke/src/spawn.cpp | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/source/games/duke/src/spawn.cpp b/source/games/duke/src/spawn.cpp index 3f1c3c393..54b185e19 100644 --- a/source/games/duke/src/spawn.cpp +++ b/source/games/duke/src/spawn.cpp @@ -736,28 +736,11 @@ void spawneffector(DDukeActor* actor, TArray* actors) actor->temp_walls[i] = closewall; - StartInterpolation(actor->temp_walls[i], Interp_Wall_X); - StartInterpolation(actor->temp_walls[i], Interp_Wall_Y); - - if (actor->temp_walls[i]->twoSided()) - { - auto nwal = actor->temp_walls[i]->nextWall(); - StartInterpolation(nwal, Interp_Wall_X); - StartInterpolation(nwal, Interp_Wall_Y); - nwal = nwal->point2Wall(); - StartInterpolation(nwal, Interp_Wall_X); - StartInterpolation(nwal, Interp_Wall_Y); - - if (nwal->twoSided()) + vertexscan(actor->temp_walls[i], [=](walltype* w) { - nwal = nwal->nextWall(); - StartInterpolation(nwal, Interp_Wall_X); - StartInterpolation(nwal, Interp_Wall_Y); - nwal = nwal->point2Wall(); - StartInterpolation(nwal, Interp_Wall_X); - StartInterpolation(nwal, Interp_Wall_Y); - } - } + StartInterpolation(w, Interp_Wall_X); + StartInterpolation(w, Interp_Wall_Y); + }); } break; }