ref: 9dff025cb98eacc9196bcdab9b2f607f16437060
parent: 12aafe9c5c927139a295d59675d8b7931bc2b96f
author: Samuel Villareal <[email protected]>
date: Fri Sep 24 22:27:25 EDT 2010
+ Fixed fluke with upWaitDownStay plat type Subversion-branch: /branches/strife-branch Subversion-revision: 2137
--- a/src/strife/p_plats.c
+++ b/src/strife/p_plats.c
@@ -214,12 +214,8 @@
// 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);