diff options
author | James Haley | 2014-09-19 22:37:17 -0500 |
---|---|---|
committer | James Haley | 2014-09-19 22:37:17 -0500 |
commit | 6f8bed05ab5bb9c403ce4d60ce3f85869fca8c49 (patch) | |
tree | 36e6f9c1d7def01d9759b7a506699f494def8054 /src/strife/p_floor.c | |
parent | 12732a1501d7690ba011270b4473dc8556ddf5e8 (diff) | |
download | chocolate-doom-6f8bed05ab5bb9c403ce4d60ce3f85869fca8c49.tar.gz chocolate-doom-6f8bed05ab5bb9c403ce4d60ce3f85869fca8c49.tar.bz2 chocolate-doom-6f8bed05ab5bb9c403ce4d60ce3f85869fca8c49.zip |
Upstream fixes to stair building issues
First sector moved instantly for buildDown16 stairs due to neglect of
using direction instead of constant 1. Also found that Strife clears the
tag of the first stair sector.
Diffstat (limited to 'src/strife/p_floor.c')
-rw-r--r-- | src/strife/p_floor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/strife/p_floor.c b/src/strife/p_floor.c index 75f9cbd9..9b89168e 100644 --- a/src/strife/p_floor.c +++ b/src/strife/p_floor.c @@ -522,9 +522,10 @@ EV_BuildStairs rtn = 1; floor = Z_Malloc (sizeof(*floor), PU_LEVSPEC, 0); P_AddThinker (&floor->thinker); + sec->tag = 0; // haleyjd 20140919: [STRIFE] clears tag of first stair sector sec->specialdata = floor; floor->thinker.function.acp1 = (actionf_p1) T_MoveFloor; - floor->direction = 1; + floor->direction = direction; // haleyjd 20140919: bug fix: direction, not "1" floor->sector = sec; floor->speed = speed; height = sec->floorheight + stairsize; |