From b30c6137d5862e35830c26618cfe813da13616f7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 29 Sep 2022 13:43:52 +0200 Subject: [PATCH] - used maptoworld in Quake code. --- source/games/blood/src/view.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/games/blood/src/view.cpp b/source/games/blood/src/view.cpp index b08ab5e7f..622b01639 100644 --- a/source/games/blood/src/view.cpp +++ b/source/games/blood/src/view.cpp @@ -414,9 +414,9 @@ void viewUpdateShake(PLAYER* pPlayer, DVector3& cPos, DAngle& cA, DAngle& cH, do int nValue = ClipHigh(effectType * 8, 2000); cH += maphoriz(QRandom2F(nValue * (1. / 256.))); cA += DAngle::fromDeg(QRandom2F(nValue * (360. / 524288.))); - cPos.X += QRandom2F(nValue * inttoworld) * inttoworld; - cPos.Y += QRandom2F(nValue * inttoworld) * inttoworld; - cPos.Z += QRandom2F(nValue) * zinttoworld; + cPos.X += QRandom2F(nValue * maptoworld) * maptoworld; + cPos.Y += QRandom2F(nValue * maptoworld) * maptoworld; + cPos.Z += QRandom2F(nValue) * zmaptoworld; pshakeX += QRandom2F(nValue) * (1. / 256.); pshakeY += QRandom2F(nValue) * (1. / 256.); }