From 3a48576bfb765601f1efc94e4a24769fec883ab9 Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 4 Mar 2010 12:03:32 +0000 Subject: [PATCH] fix for underwater ceiling issue git-svn-id: https://svn.eduke32.com/eduke32@1607 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/player.c b/polymer/eduke32/source/player.c index dbec3273b..b2f2e0d85 100644 --- a/polymer/eduke32/source/player.c +++ b/polymer/eduke32/source/player.c @@ -4355,9 +4355,9 @@ void P_ProcessInput(int32_t snum) if (p->posz > (fz-(15<<8))) p->posz += ((fz-(15<<8))-p->posz)>>1; - if ((psectlotag != 2 || cz != sector[p->cursectnum].ceilingz) && p->posz < (cz+(4<<8))) + if (p->posz < cz) { - p->posz = cz+(4<<8); + p->posz = cz; p->poszv = 0; }