summaryrefslogtreecommitdiff
path: root/src/strife/p_switch.c
diff options
context:
space:
mode:
authorSamuel Villareal2010-09-10 02:36:05 +0000
committerSamuel Villareal2010-09-10 02:36:05 +0000
commit15fdcbbe5899bde4831d100db63117ba2c00a4dd (patch)
tree2946712e7f430dab262d9e704168a504f8f938af /src/strife/p_switch.c
parent9f4c5a6ed4e490fb51aa207c2def75fcb2622584 (diff)
downloadchocolate-doom-15fdcbbe5899bde4831d100db63117ba2c00a4dd.tar.gz
chocolate-doom-15fdcbbe5899bde4831d100db63117ba2c00a4dd.tar.bz2
chocolate-doom-15fdcbbe5899bde4831d100db63117ba2c00a4dd.zip
+ 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
Diffstat (limited to 'src/strife/p_switch.c')
-rw-r--r--src/strife/p_switch.c6
1 files changed, 5 insertions, 1 deletions
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);