From 7f2fe5bb7c6b9d2c1343b027325f8535d72eb35a Mon Sep 17 00:00:00 2001 From: noooooo4499 <32027706+noooooo4499@users.noreply.github.com> Date: Tue, 24 Feb 2026 23:09:08 -0500 Subject: [PATCH] Avoid breaking compatibility with gamedirs with old HourlyUpdate scripts They are mapped to the right variable now --- Strategic/Luaglobal.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Strategic/Luaglobal.cpp b/Strategic/Luaglobal.cpp index 2efe2cf12..37d674855 100644 --- a/Strategic/Luaglobal.cpp +++ b/Strategic/Luaglobal.cpp @@ -581,6 +581,16 @@ void IniGlobalGameSetting(lua_State *L) lua_pushinteger(L, guiMin); lua_setglobal(L, "guiMin"); + lua_pushinteger(L, guiDay); + lua_setglobal(L, "cDay"); + + lua_pushinteger(L, guiHour); + lua_setglobal(L, "cHour"); + + lua_pushinteger(L, guiMin); + lua_setglobal(L, "cMin"); + + lua_pushinteger(L, guiCurrentScreen); lua_setglobal(L, "guiCurrentScreen");