summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-02-09 19:59:55 +0100
committeraap <aap@papnet.eu>2021-02-09 19:59:55 +0100
commit25703b04a2f5e299f3e2c38ccf72aaa34dba75f7 (patch)
tree15739b0369c44b66cf805126bf802a4b3f79ff8a
parentUse VEHICLE_FIREWEAPON in GXTs (diff)
downloadre3-25703b04a2f5e299f3e2c38ccf72aaa34dba75f7.tar
re3-25703b04a2f5e299f3e2c38ccf72aaa34dba75f7.tar.gz
re3-25703b04a2f5e299f3e2c38ccf72aaa34dba75f7.tar.bz2
re3-25703b04a2f5e299f3e2c38ccf72aaa34dba75f7.tar.lz
re3-25703b04a2f5e299f3e2c38ccf72aaa34dba75f7.tar.xz
re3-25703b04a2f5e299f3e2c38ccf72aaa34dba75f7.tar.zst
re3-25703b04a2f5e299f3e2c38ccf72aaa34dba75f7.zip
Diffstat (limited to '')
-rw-r--r--src/render/Clouds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/Clouds.cpp b/src/render/Clouds.cpp
index b5af6619..684f5d74 100644
--- a/src/render/Clouds.cpp
+++ b/src/render/Clouds.cpp
@@ -273,8 +273,8 @@ CClouds::Render(void)
for(i = 0; i < 37; i++){
RwV3d pos = { 2.0f*CoorsOffsetX[i], 2.0f*CoorsOffsetY[i], 40.0f*CoorsOffsetZ[i] + 40.0f };
- worldpos.x = campos.x*rot_cos + campos.y*rot_sin + pos.x;
- worldpos.y = campos.x*rot_sin + campos.y*rot_cos + pos.y;
+ worldpos.x = pos.x*rot_cos + pos.y*rot_sin + campos.x;
+ worldpos.y = pos.x*rot_sin - pos.y*rot_cos + campos.y;
worldpos.z = pos.z;
if(bCloudOnScreen[i] && CSprite::CalcScreenCoors(worldpos, &screenpos, &szx, &szy, false)){
// BUG: this is stupid....would have to do this for each cloud individually