commit 9dff025cb98eacc9196bcdab9b2f607f16437060
Author: Samuel Villareal <svkaiser@gmail.com>
AuthorDate: Sat Sep 25 02:27:25 2010 +0000
Commit: Samuel Villareal <svkaiser@gmail.com>
CommitDate: Sat Sep 25 02:27:25 2010 +0000
+ Fixed fluke with upWaitDownStay plat type
Subversion-branch: /branches/strife-branch
Subversion-revision: 2137
---
src/strife/p_plats.c | 8 ++------
1 file 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);