From 2cc73cc52adef86458f1f6ee5a7bc91a503cdd74 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 2 Jan 2025 01:50:37 +0100 Subject: [PATCH] this may not be synchsafe --- src/p_floor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_floor.c b/src/p_floor.c index 26a2d0cf1..e81dce5bc 100644 --- a/src/p_floor.c +++ b/src/p_floor.c @@ -2927,7 +2927,9 @@ void EV_CrumbleChain(sector_t *sec, ffloor_t *rover) if (secspecial >= 8) type = MT_ROCKCRUMBLE1+(secspecial-7); - sec->soundorg.z = (rover->master->frontsector->floorheight + rover->master->frontsector->ceilingheight)/2; + // soundorg z height never gets set normally, so MEH. + sec->soundorg.z = sec->floorheight; + //sec->soundorg.z = (rover->master->frontsector->floorheight + rover->master->frontsector->ceilingheight)/2; // actual accurate z but well smth smth synchsafe S_StartSound(&sec->soundorg, sfx_crumbl); // Find the outermost vertexes in the subsector