summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-02-09 20:03:13 +0100
committeraap <aap@papnet.eu>2021-02-09 20:03:13 +0100
commitc06b971b659f6bdc165334b41d44bab3cffd01bf (patch)
tree767ca5cde4f0892224c733dd3ab0534a5d191ff6
parentCColModel (diff)
downloadre3-c06b971b659f6bdc165334b41d44bab3cffd01bf.tar
re3-c06b971b659f6bdc165334b41d44bab3cffd01bf.tar.gz
re3-c06b971b659f6bdc165334b41d44bab3cffd01bf.tar.bz2
re3-c06b971b659f6bdc165334b41d44bab3cffd01bf.tar.lz
re3-c06b971b659f6bdc165334b41d44bab3cffd01bf.tar.xz
re3-c06b971b659f6bdc165334b41d44bab3cffd01bf.tar.zst
re3-c06b971b659f6bdc165334b41d44bab3cffd01bf.zip
-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 c7554356..e3a8c86e 100644
--- a/src/render/Clouds.cpp
+++ b/src/render/Clouds.cpp
@@ -265,8 +265,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)){
if(sundist < SCREEN_WIDTH/3){