From 9dff025cb98eacc9196bcdab9b2f607f16437060 Mon Sep 17 00:00:00 2001 From: Samuel Villareal Date: Sat, 25 Sep 2010 02:27:25 +0000 Subject: + 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(-) (limited to 'src/strife/p_plats.c') 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); -- cgit v1.2.3