Revert "- blood: fix velCeil calculation"

This reverts commit d85a8b6507.

This broke player view height on elevators.
This commit is contained in:
Christoph Oelckers 2022-08-08 23:33:56 +02:00
parent 864c0b71e0
commit 9c107049fd

View file

@ -967,7 +967,7 @@ void ZTranslateSector(sectortype* pSector, XSECTOR* pXSector, int a3, int a4)
{
int oldZ = pSector->floorz;
pSector->setfloorz((pSector->baseFloor = pXSector->offFloorZ + MulScale(dz, GetWaveValue(a3, a4), 16)));
pSector->velFloor += (pSector->floorz - oldZ);
pSector->velFloor += (pSector->floorz - oldZ) << 8;
BloodSectIterator it(pSector);
while (auto actor = it.Next())