diff --git a/src/lua_script.c b/src/lua_script.c
index be33cd35b7e83192956db02a24424bd07fbdc75b..2805a969b85631765f5cab0869a081e57f384502 100644
--- a/src/lua_script.c
+++ b/src/lua_script.c
@@ -382,6 +382,8 @@ int LUA_CheckGlobals(lua_State *L, const char *word)
 		token = (UINT32)luaL_checkinteger(L, 2);
 	else if (fastcmp(word, "gravity"))
 		gravity = (fixed_t)luaL_checkinteger(L, 2);
+	else if (fastcmp(word, "stoppedclock"))
+		stoppedclock = luaL_checkboolean(L, 2);
 	else if (fastcmp(word, "displayplayer"))
 	{
 		player_t *player = *((player_t **)luaL_checkudata(L, 2, META_PLAYER));