- vel replacements.

This commit is contained in:
Christoph Oelckers 2021-10-13 00:42:45 +02:00
parent 7430a630bd
commit 6e2f8ec47f

View file

@ -1128,10 +1128,10 @@ static void windGenDoVerticalWind(int factor, int nSector)
}
val = -MulScale(factor * 64, 0x10000, 16);
if (zvel[pSpr->index] >= 0) zvel[pSpr->index] += val;
else zvel[pSpr->index] = val;
if (actor->zvel() >= 0) actor->zvel() += val;
else actor->zvel() = val;
pSpr->z += zvel[pSpr->index] >> 12;
pSpr->z += actor->zvel() >> 12;
}