mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- used maptoworld in Quake code.
This commit is contained in:
parent
2afea7c477
commit
b30c6137d5
1 changed files with 3 additions and 3 deletions
|
@ -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.);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue