summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Haley2014-10-26 20:27:47 -0500
committerJames Haley2014-10-26 20:27:47 -0500
commita0104247691296ef80807f7e55183a751fa69db8 (patch)
tree0e4dc170fd9076eb9e57f096e7973a5b88546e23 /src
parentf55a88fec2949c834aa6c4434f22fcaf717ee11d (diff)
downloadchocolate-doom-a0104247691296ef80807f7e55183a751fa69db8.tar.gz
chocolate-doom-a0104247691296ef80807f7e55183a751fa69db8.tar.bz2
chocolate-doom-a0104247691296ef80807f7e55183a751fa69db8.zip
Rogue fixed DOOM bug regarding switch sound origins
Re-examination of assembly reveals use of &line->frontsector->soundorg instead of buttonlist->soundorg.
Diffstat (limited to 'src')
-rw-r--r--src/strife/p_switch.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/strife/p_switch.c b/src/strife/p_switch.c
index da345e86..a909a039 100644
--- a/src/strife/p_switch.c
+++ b/src/strife/p_switch.c
@@ -287,7 +287,8 @@ void P_ChangeSwitchTexture(line_t* line, int useAgain)
if(sl->sound)
sound = sl->sound;
- S_StartSound(buttonlist->soundorg, sound);
+ // haleyjd 20141026: [STRIFE]: Rogue fixed wrong sound origin
+ S_StartSound(&line->frontsector->soundorg, sound);
sides[line->sidenum[0]].toptexture = switchlist[i^1];
if(useAgain)
@@ -306,7 +307,8 @@ void P_ChangeSwitchTexture(line_t* line, int useAgain)
if(sl->sound)
sound = sl->sound;
- S_StartSound(buttonlist->soundorg,sound);
+ // haleyjd 20141026: [STRIFE]: Rogue fixed wrong sound origin
+ S_StartSound(&line->frontsector->soundorg, sound);
sides[line->sidenum[0]].midtexture = switchlist[i^1];
// villsa [STRIFE] affect second side of line
@@ -348,7 +350,8 @@ void P_ChangeSwitchTexture(line_t* line, int useAgain)
if(sl->sound)
sound = sl->sound;
- S_StartSound(buttonlist->soundorg,sound);
+ // haleyjd 20141026: [STRIFE]: Rogue fixed wrong sound origin
+ S_StartSound(&line->frontsector->soundorg, sound);
sides[line->sidenum[0]].bottomtexture = switchlist[i^1];
if(useAgain)