Merge branch 'daily_script' into jgrpp

This commit is contained in:
Jonathan G Rennison
2015-09-11 03:44:43 +01:00

View File

@@ -20,6 +20,7 @@
#include "rail_gui.h" #include "rail_gui.h"
#include "linkgraph/linkgraph.h" #include "linkgraph/linkgraph.h"
#include "saveload/saveload.h" #include "saveload/saveload.h"
#include "console_func.h"
#include "safeguards.h" #include "safeguards.h"
@@ -226,6 +227,7 @@ static void OnNewYear()
} }
if (_settings_client.gui.auto_euro) CheckSwitchToEuro(); if (_settings_client.gui.auto_euro) CheckSwitchToEuro();
IConsoleCmdExec("exec scripts/on_newyear.scr 0");
} }
/** /**
@@ -248,6 +250,7 @@ static void OnNewMonth()
#ifdef ENABLE_NETWORK #ifdef ENABLE_NETWORK
if (_network_server) NetworkServerMonthlyLoop(); if (_network_server) NetworkServerMonthlyLoop();
#endif /* ENABLE_NETWORK */ #endif /* ENABLE_NETWORK */
IConsoleCmdExec("exec scripts/on_newmonth.scr 0");
} }
/** /**
@@ -267,6 +270,7 @@ static void OnNewDay()
/* Refresh after possible snowline change */ /* Refresh after possible snowline change */
SetWindowClassesDirty(WC_TOWN_VIEW); SetWindowClassesDirty(WC_TOWN_VIEW);
IConsoleCmdExec("exec scripts/on_newday.scr 0");
} }
/** /**