From 15fdcbbe5899bde4831d100db63117ba2c00a4dd Mon Sep 17 00:00:00 2001 From: Samuel Villareal Date: Fri, 10 Sep 2010 02:36:05 +0000 Subject: + Fixed a minor fluke in P_ChangeSwitchTexture + R_SoundNumForDoor implemented + opensound/closesound variables added to vldoor_t struct Subversion-branch: /branches/strife-branch Subversion-revision: 2053 --- src/strife/p_switch.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/strife/p_switch.c') diff --git a/src/strife/p_switch.c b/src/strife/p_switch.c index 658aa55c..49e52760 100644 --- a/src/strife/p_switch.c +++ b/src/strife/p_switch.c @@ -220,7 +220,7 @@ static void P_SpawnBrokenGlass(line_t* line) for(i = 0; i < 7; i++) { - glass = P_SpawnMobj(x2, y2, ONCEILINGZ, MT_JUNK); + glass = P_SpawnMobj(x2, y2, ONFLOORZ, MT_JUNK); glass->z += (24*FRACUNIT); glass->flags |= (MF_SHADOW|MF_MVIS); @@ -313,6 +313,10 @@ void P_ChangeSwitchTexture(line_t* line, int useAgain) S_StartSound(buttonlist->soundorg,sound); sides[line->sidenum[0]].midtexture = switchlist[i^1]; + // villsa [STRIFE] affect second side of line + if(line->flags & ML_TWOSIDED) + sides[line->sidenum[1]].midtexture = switchlist[i^1]; + if(useAgain) P_StartButton(line, middle,switchlist[i],BUTTONTIME); -- cgit v1.2.3