diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-11 15:14:56 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-11 15:14:56 +0100 |
commit | 625376f0d3df0afc6ec61359175ba64ca904cfa0 (patch) | |
tree | 45e809967a265c2809bb78b7e67ad0187a3e7885 /src/render/Weather.cpp | |
parent | script2 (diff) | |
download | re3-625376f0d3df0afc6ec61359175ba64ca904cfa0.tar re3-625376f0d3df0afc6ec61359175ba64ca904cfa0.tar.gz re3-625376f0d3df0afc6ec61359175ba64ca904cfa0.tar.bz2 re3-625376f0d3df0afc6ec61359175ba64ca904cfa0.tar.lz re3-625376f0d3df0afc6ec61359175ba64ca904cfa0.tar.xz re3-625376f0d3df0afc6ec61359175ba64ca904cfa0.tar.zst re3-625376f0d3df0afc6ec61359175ba64ca904cfa0.zip |
Diffstat (limited to 'src/render/Weather.cpp')
-rw-r--r-- | src/render/Weather.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/render/Weather.cpp b/src/render/Weather.cpp index 17c45fcd..6d4920b5 100644 --- a/src/render/Weather.cpp +++ b/src/render/Weather.cpp @@ -51,6 +51,10 @@ float CWeather::WindClipped; float CWeather::TrafficLightBrightness; bool CWeather::bScriptsForceRain; +float CWeather::Stored_InterpolationValue; +int16 CWeather::Stored_OldWeatherType; +int16 CWeather::Stored_NewWeatherType; +float CWeather::Stored_Rain; tRainStreak Streaks[NUM_RAIN_STREAKS]; @@ -647,3 +651,23 @@ void CWeather::RenderRainStreaks(void) TempBufferVerticesStored = 0; TempBufferIndicesStored = 0; } + +void CWeather::StoreWeatherState() +{ + Stored_StateStored = true; + Stored_InterpolationValue = InterpolationValue; + Stored_Rain = Rain; + Stored_NewWeatherType = NewWeatherType; + Stored_OldWeatherType = OldWeatherType; +} + +void CWeather::RestoreWeatherState() +{ +#ifdef FIX_BUGS // it's not used anyway though + Stored_StateStored = false; +#endif + InterpolationValue = Stored_InterpolationValue; + Rain = Stored_Rain; + NewWeatherType = Stored_NewWeatherType; + OldWeatherType = Stored_OldWeatherType; +} |