fix for underwater ceiling issue

git-svn-id: https://svn.eduke32.com/eduke32@1607 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2010-03-04 12:03:32 +00:00
parent da1bdf711c
commit 3a48576bfb

View file

@ -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;
}