mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- RR: interpolate moving furniture.
This commit is contained in:
parent
33aee54113
commit
47b9de1fb4
1 changed files with 19 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue