mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Merge branch 'bustablesoundz' into 'next'
Start bustable FOF sounds at the correct height Closes #846 See merge request STJr/SRB2!1818
This commit is contained in:
commit
e59684b1a2
1 changed files with 3 additions and 4 deletions
|
@ -1870,12 +1870,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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue