From 8cb321993e93bc33721ea934b24dbc8c53bcc50e Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 8 Jun 2026 09:45:29 +0200 Subject: [PATCH] restore functionality to set zipper/speed pad sounds set using the front side upper texture field like the play sound special per "DSXXXX" the parsing part already was there but not the actual code to make it use the specified sound for some reason lul shouldnt break anything and is vanilla compatible! --- src/p_spec.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/p_spec.c b/src/p_spec.c index 63a0ceaea..978c3041e 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -3473,6 +3473,7 @@ DoneSection2: if (i != -1) { + INT32 sfxnum; angle_t lineangle; fixed_t linespeed; @@ -3515,7 +3516,14 @@ DoneSection2: player->kartstuff[k_drift] = 0; player->kartstuff[k_driftcharge] = 0; player->kartstuff[k_pogospring] = 0; - S_StartSound(player->mo, sfx_spdpad); + + sfxnum = sides[line->sidenum[0]].toptexture; + + // none or invalid sound? + if (sfxnum <= sfx_None || sfxnum >= NUMSFX) + sfxnum = sfx_spdpad; // use the zippy sound then! + + S_StartSound(player->mo, sfxnum); { sfxenum_t pick = P_RandomKey(2); // Gotta roll the RNG every time this is called for sync reasons