summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-23 13:27:37 +0200
committeraap <aap@papnet.eu>2020-08-23 13:27:56 +0200
commit38a01a59fab9f95f8413166e79e4a34ff77fbbb0 (patch)
treec27ec318f7e5996a54ba2c99b6f5b6e851083302 /src/core
parentfixed a few embarassing mistakes (diff)
downloadre3-38a01a59fab9f95f8413166e79e4a34ff77fbbb0.tar
re3-38a01a59fab9f95f8413166e79e4a34ff77fbbb0.tar.gz
re3-38a01a59fab9f95f8413166e79e4a34ff77fbbb0.tar.bz2
re3-38a01a59fab9f95f8413166e79e4a34ff77fbbb0.tar.lz
re3-38a01a59fab9f95f8413166e79e4a34ff77fbbb0.tar.xz
re3-38a01a59fab9f95f8413166e79e4a34ff77fbbb0.tar.zst
re3-38a01a59fab9f95f8413166e79e4a34ff77fbbb0.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/re3.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index 6a305b4c..ce34dc0f 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -300,6 +300,12 @@ TWEAKSWITCH(CWeather::NewWeatherType, 0, 3, wt, NULL);
*/
void
+switchWeather(void)
+{
+ CWeather::StreamAfterRainTimer = 0;
+}
+
+void
DebugMenuPopulate(void)
{
if(1){
@@ -332,9 +338,9 @@ DebugMenuPopulate(void)
e = DebugMenuAddVar("Time & Weather", "Current Minute", &CClock::GetMinutesRef(),
[](){ CWeather::InterpolationValue = CClock::GetMinutes()/60.0f; }, 1, 0, 59, nil);
DebugMenuEntrySetWrap(e, true);
- e = DebugMenuAddVar("Time & Weather", "Old Weather", (int16*)&CWeather::OldWeatherType, nil, 1, 0, 5, weathers);
+ e = DebugMenuAddVar("Time & Weather", "Old Weather", (int16*)&CWeather::OldWeatherType, switchWeather, 1, 0, 5, weathers);
DebugMenuEntrySetWrap(e, true);
- e = DebugMenuAddVar("Time & Weather", "New Weather", (int16*)&CWeather::NewWeatherType, nil, 1, 0, 5, weathers);
+ e = DebugMenuAddVar("Time & Weather", "New Weather", (int16*)&CWeather::NewWeatherType, switchWeather, 1, 0, 5, weathers);
DebugMenuEntrySetWrap(e, true);
DebugMenuAddVarBool32("Time & Weather", "Extracolours On", &CTimeCycle::m_bExtraColourOn, nil);
DebugMenuAddVar("Time & Weather", "Extracolour", &CTimeCycle::m_ExtraColour, nil, 1, 0, 23, extracols);