From 35122d3a226d156559f32f05326af158eb085a26 Mon Sep 17 00:00:00 2001 From: Steel Titanium Date: Thu, 27 Aug 2020 14:58:46 -0400 Subject: [PATCH] Expose demo.playback to Lua --- src/dehacked.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dehacked.c b/src/dehacked.c index a117866a..72da6a9c 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -9762,6 +9762,9 @@ static inline int lib_getenum(lua_State *L) } else if (fastcmp(word,"exitcountdown")) { lua_pushinteger(L, exitcountdown); // This name is pretty dumb. Hence why we'll prefer more descriptive names at least in Lua... return 1; + } else if (fastcmp(word,"replayplayback")) { + lua_pushboolean(L, demo.playback); + return 1; } return 0; }