- blood: fix velCeil calculation

copied from NBlood 397992b6d5acd9c839db78dafde3a9a718b2503f
This commit is contained in:
Christoph Oelckers 2022-05-06 01:26:38 +02:00
parent 219970f626
commit d85a8b6507

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) << 8;
pSector->velFloor += (pSector->floorz - oldZ);
BloodSectIterator it(pSector);
while (auto actor = it.Next())