From c25e287d406905a1c9c1b8005b80856e32b38701 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Fri, 21 Feb 2025 19:23:31 -0500 Subject: [PATCH] More lua fixes --- src/deh_lua.c | 5 +++++ src/lua_playerlib.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/deh_lua.c b/src/deh_lua.c index 01ea87625..934f733fa 100644 --- a/src/deh_lua.c +++ b/src/deh_lua.c @@ -302,6 +302,11 @@ static int ScanConstants(lua_State *L, boolean mathlib, const char *word) CacheAndPushConstant(L, word, ((lua_Integer)PF_NOCONTEST)); return 1; } + if (lua_compatmode && fastcmp(p, "FORCESTRAFE")) + { + CacheAndPushConstant(L, word, ((lua_Integer)0)); + return 1; + } for (i = 0; PLAYERFLAG_LIST[i]; i++) if (fastcmp(p, PLAYERFLAG_LIST[i])) { CacheAndPushConstant(L, word, ((lua_Integer)1<forwardmove = (SINT8)luaL_checkinteger(L, 3); + else if (fastcmp(field,"sidemove")) + cmd->sidemove = (SINT8)luaL_checkinteger(L, 3); else if (fastcmp(field,"turning")) cmd->turning = (INT16)luaL_checkinteger(L, 3); else if (fastcmp(field,"driftturn"))