summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-02-10 08:01:53 +0100
committerSergeanur <s.anureev@yandex.ua>2021-02-10 08:01:53 +0100
commitb6af7393e8494570de4bfa837ba2090c522b28bb (patch)
treeaba068f1307a1a4e8c3d72adf69c0869f5c29f0e /src/render
parentController menu (diff)
parentfix clouds (diff)
downloadre3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar
re3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar.gz
re3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar.bz2
re3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar.lz
re3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar.xz
re3-b6af7393e8494570de4bfa837ba2090c522b28bb.tar.zst
re3-b6af7393e8494570de4bfa837ba2090c522b28bb.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Clouds.cpp4
-rw-r--r--src/render/WaterCannon.cpp2
2 files changed, 3 insertions, 3 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){
diff --git a/src/render/WaterCannon.cpp b/src/render/WaterCannon.cpp
index 53b4d30e..da05a1ca 100644
--- a/src/render/WaterCannon.cpp
+++ b/src/render/WaterCannon.cpp
@@ -242,7 +242,7 @@ void CWaterCannon::PushPeds(void)
ped->m_vecMoveSpeed.x *= (0.2f / pedSpeed2D);
ped->m_vecMoveSpeed.y *= (0.2f / pedSpeed2D);
}
- ped->SetFall(2000, (AnimationId)(localDir + ANIM_KO_SKID_FRONT), 0);
+ ped->SetFall(2000, (AnimationId)(localDir + ANIM_STD_HIGHIMPACT_FRONT), 0);
CParticle::AddParticle(PARTICLE_STEAM_NY_SLOWMOTION, ped->GetPosition(), ped->m_vecMoveSpeed * 0.3f, 0, 0.5f);
CParticle::AddParticle(PARTICLE_CAR_SPLASH, ped->GetPosition(), ped->m_vecMoveSpeed * -0.3f + CVector(0.f, 0.f, 0.5f), 0, 0.5f,
CGeneral::GetRandomNumberInRange(0.f, 10.f), CGeneral::GetRandomNumberInRange(0.f, 90.f), 1);