summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2019-10-16 23:42:31 +0300
committerGitHub <noreply@github.com>2019-10-16 23:42:31 +0300
commit2c81844c20e41079b8d654a4bd06c62e6cd160ea (patch)
tree0d4061ef678cf2bb73bc634128f19878e14c9608 /src/render
parentb9e473b542aedacd743bfbcd3974906b5a54b94b (diff)
parent38565a47a1ad8e1a9ba600d3df8e56ec613fda12 (diff)
Merge pull request #244 from Nick007J/master
script 400-499
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Weather.cpp12
-rw-r--r--src/render/Weather.h2
2 files changed, 14 insertions, 0 deletions
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;
+}
diff --git a/src/render/Weather.h b/src/render/Weather.h
index a9c15fd9..bbf8498e 100644
--- a/src/render/Weather.h
+++ b/src/render/Weather.h
@@ -36,4 +36,6 @@ public:
static void RenderRainStreaks(void);
static void ReleaseWeather();
+ static void ForceWeather(int16);
+ static void ForceWeatherNow(int16);
};