From c78fff8d5469f76a1a684f55bb4a6c7d64ad12b7 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 12 Oct 2019 22:00:31 +0300 Subject: script 400-499 start --- src/render/Weather.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/render/Weather.cpp') diff --git a/src/render/Weather.cpp b/src/render/Weather.cpp index 460deeac..452eca92 100644 --- a/src/render/Weather.cpp +++ b/src/render/Weather.cpp @@ -33,3 +33,15 @@ void CWeather::ReleaseWeather() { ForcedWeatherType = -1; } + +void CWeather::ForceWeather(int16 weather) +{ + ForcedWeatherType = weather; +} + +void CWeather::ForceWeatherNow(int16 weather) +{ + OldWeatherType = weather; + NewWeatherType = weather; + ForcedWeatherType = weather; +} -- cgit v1.2.3