ref: a0104247691296ef80807f7e55183a751fa69db8
parent: f55a88fec2949c834aa6c4434f22fcaf717ee11d
author: James Haley <[email protected]>
date: Sun Oct 26 16:27:47 EDT 2014
Rogue fixed DOOM bug regarding switch sound origins Re-examination of assembly reveals use of &line->frontsector->soundorg instead of buttonlist->soundorg.
--- a/src/strife/p_switch.c
+++ b/src/strife/p_switch.c
@@ -287,7 +287,8 @@
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 @@
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 @@
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)