From 021ca92019f6b7d1be29eaf171b5b11bb14eb9c5 Mon Sep 17 00:00:00 2001
From: fickleheart <fickle@tinted.red>
Date: Sun, 9 Feb 2020 17:53:30 -0600
Subject: [PATCH] Expose stoppedclock to Lua

---
 src/lua_script.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lua_script.c b/src/lua_script.c
index 2538fb7115..eb6c54ae05 100644
--- a/src/lua_script.c
+++ b/src/lua_script.c
@@ -102,6 +102,9 @@ int LUA_PushGlobals(lua_State *L, const char *word)
 	} else if (fastcmp(word,"circuitmap")) {
 		lua_pushboolean(L, circuitmap);
 		return 1;
+	} else if (fastcmp(word,"stoppedclock")) {
+		lua_pushboolean(L, stoppedclock);
+		return 1;
 	} else if (fastcmp(word,"netgame")) {
 		lua_pushboolean(L, netgame);
 		return 1;
-- 
GitLab