- RR: interpolate moving furniture.

This commit is contained in:
Christoph Oelckers 2022-01-04 17:12:15 +01:00
parent 33aee54113
commit 47b9de1fb4

View file

@ -2844,6 +2844,25 @@ void dofurniture(walltype* wlwal, sectortype* sectp, int snum)
ins = inside(min_x, max_y, sectp);
if (!ins)
var_C = 0;
for (auto& wal : wallsofsector(nextsect))
{
x = wal.pos.X;
y = wal.pos.Y;
switch (wlwal->lotag)
{
case 42:
case 41:
case 40:
case 43:
vertexscan(&wal, [=](walltype* w)
{
StartInterpolation(w, wlwal->lotag == 41 || wlwal->lotag == 42 ? Interp_Wall_X : Interp_Wall_Y);
});
break;
}
}
if (var_C)
{
if (S_CheckActorSoundPlaying(ps[snum].GetActor(), 389) == 0)