Start bustable FOF sounds at the correct height

This commit is contained in:
spherallic 2022-09-26 23:51:51 +02:00 committed by toaster
parent ce15c47a4d
commit 6d415c3d9c

View file

@ -2149,12 +2149,11 @@ void EV_CrumbleChain(sector_t *sec, ffloor_t *rover)
}
}
#undef controlsec
// soundorg z height never gets set normally, so MEH.
sec->soundorg.z = sec->floorheight;
sec->soundorg.z = (controlsec->floorheight + controlsec->ceilingheight)/2;
S_StartSound(&sec->soundorg, mobjinfo[type].activesound);
#undef controlsec
// Find the outermost vertexes in the subsector
for (i = 0; i < sec->linecount; i++)
{