- Duke: Fix questionable setup in previous commit to interpolate SE_20_STRETCH_BRIDGE.

This commit is contained in:
Mitchell Richters 2022-10-08 00:26:41 +11:00 committed by Christoph Oelckers
parent 05a05c6406
commit befa5a933c

View file

@ -736,28 +736,11 @@ void spawneffector(DDukeActor* actor, TArray<DDukeActor*>* 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;
}