From 2c3e58909ff943ca3fac1593da13d43b90ebc2f8 Mon Sep 17 00:00:00 2001 From: patch-import Date: Fri, 11 Sep 2015 02:54:56 +0100 Subject: [PATCH] Import daily/monthly/yearly scripts patch. Fix whitespace. http://www.tt-forums.net/viewtopic.php?f=33&t=49595 --- src/date.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/date.cpp b/src/date.cpp index 9c25af40ee..9a1ed180ef 100644 --- a/src/date.cpp +++ b/src/date.cpp @@ -20,6 +20,7 @@ #include "rail_gui.h" #include "linkgraph/linkgraph.h" #include "saveload/saveload.h" +#include "console_func.h" #include "safeguards.h" @@ -225,6 +226,7 @@ static void OnNewYear() } if (_settings_client.gui.auto_euro) CheckSwitchToEuro(); + IConsoleCmdExec("exec scripts/on_newyear.scr 0"); } /** @@ -247,6 +249,7 @@ static void OnNewMonth() #ifdef ENABLE_NETWORK if (_network_server) NetworkServerMonthlyLoop(); #endif /* ENABLE_NETWORK */ + IConsoleCmdExec("exec scripts/on_newmonth.scr 0"); } /** @@ -266,6 +269,7 @@ static void OnNewDay() /* Refresh after possible snowline change */ SetWindowClassesDirty(WC_TOWN_VIEW); + IConsoleCmdExec("exec scripts/on_newday.scr 0"); } /**