summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuel Villareal2010-09-25 02:27:25 +0000
committerSamuel Villareal2010-09-25 02:27:25 +0000
commit9dff025cb98eacc9196bcdab9b2f607f16437060 (patch)
treea980ba7e0e036f01c6a19db5813af481e48c92e0 /src
parent12aafe9c5c927139a295d59675d8b7931bc2b96f (diff)
downloadchocolate-doom-9dff025cb98eacc9196bcdab9b2f607f16437060.tar.gz
chocolate-doom-9dff025cb98eacc9196bcdab9b2f607f16437060.tar.bz2
chocolate-doom-9dff025cb98eacc9196bcdab9b2f607f16437060.zip
+ Fixed fluke with upWaitDownStay plat type
Subversion-branch: /branches/strife-branch Subversion-revision: 2137
Diffstat (limited to 'src')
-rw-r--r--src/strife/p_plats.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/strife/p_plats.c b/src/strife/p_plats.c
index 45779aeb..5d10670d 100644
--- a/src/strife/p_plats.c
+++ b/src/strife/p_plats.c
@@ -214,12 +214,8 @@ int EV_DoPlat(line_t* line, plattype_e type, int amount)
// villsa [STRIFE]
case upWaitDownStay:
plat->speed = PLATSPEED * 4;
- plat->low = P_FindNextHighestFloor(sec, sec->floorheight);
-
- if(plat->low > sec->floorheight)
- plat->low = sec->floorheight;
-
- plat->high = sec->floorheight;
+ plat->high = P_FindNextHighestFloor(sec, sec->floorheight);
+ plat->low = sec->floorheight;
plat->wait = TICRATE * PLATWAIT;
plat->status = up;
S_StartSound(&sec->soundorg, sfx_pstart);