#?patch
#
# This patch stops prboom(1) from trying to play sounds that are not in
# the 1.2 IWAD, when the compatibility mode is set to that version.
#
# --zeurkous, Sat Oct 24 20:26:43 UTC 2020.
#
--- src/..ar/0/s_sound.c Mon Oct 6 20:13:50 2008
+++ src/s_sound.c Sat Oct 24 20:20:31 2020
@@ -226,6 +226,14 @@
is_pickup = sfx_id & PICKUP_SOUND || sfx_id == sfx_oof || (compatibility_level >= prboom_2_compatibility && sfx_id == sfx_noway); // killough 4/25/98
sfx_id &= ~PICKUP_SOUND;
+ // 1.2 does not have some sounds.
+ // --zeurkous, Sat Oct 24 20:14:36 UTC 2020.
+ if(!compatibility_level) switch(sfx_id)
+ {
+ case sfx_getpow: sfx_id = sfx_itemup; break;
+ case sfx_pdiehi: sfx_id = sfx_pldeth;
+ }
+
// check for bogus sound #
if (sfx_id < 1 || sfx_id > NUMSFX)
I_Error("S_StartSoundAtVolume: Bad sfx #: %d", sfx_id);
No comments:
Post a Comment