diff options
author | aap <aap@papnet.eu> | 2020-05-18 16:40:30 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-18 16:40:30 +0200 |
commit | 9b09aa3384213dab45db023d95487096e64ad5c6 (patch) | |
tree | d6df92a097a0c2930abb548d0d80928944cb16b1 /src/render/Clouds.cpp | |
parent | little cleanup on radar (diff) | |
download | re3-9b09aa3384213dab45db023d95487096e64ad5c6.tar re3-9b09aa3384213dab45db023d95487096e64ad5c6.tar.gz re3-9b09aa3384213dab45db023d95487096e64ad5c6.tar.bz2 re3-9b09aa3384213dab45db023d95487096e64ad5c6.tar.lz re3-9b09aa3384213dab45db023d95487096e64ad5c6.tar.xz re3-9b09aa3384213dab45db023d95487096e64ad5c6.tar.zst re3-9b09aa3384213dab45db023d95487096e64ad5c6.zip |
Diffstat (limited to 'src/render/Clouds.cpp')
-rw-r--r-- | src/render/Clouds.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/Clouds.cpp b/src/render/Clouds.cpp index 9c0fde0f..60450213 100644 --- a/src/render/Clouds.cpp +++ b/src/render/Clouds.cpp @@ -69,8 +69,13 @@ void CClouds::Update(void) { float s = Sin(TheCamera.Orientation - 0.85f); +#ifdef FIX_BUGS + CloudRotation += CWeather::Wind*s*0.0025f*CTimer::GetTimeStepFix(); + IndividualRotation += (CWeather::Wind*CTimer::GetTimeStep() + 0.3f*CTimer::GetTimeStepFix()) * 60.0f; +#else CloudRotation += CWeather::Wind*s*0.0025f; IndividualRotation += (CWeather::Wind*CTimer::GetTimeStep() + 0.3f) * 60.0f; +#endif } void |