From 037a75df0862181585c477300cbfe244fdfdc967 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Mon, 3 Mar 2025 13:49:16 -0500 Subject: [PATCH] Match is battle --- src/deh_lua.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/deh_lua.c b/src/deh_lua.c index 934f733fa..887b48338 100644 --- a/src/deh_lua.c +++ b/src/deh_lua.c @@ -347,6 +347,11 @@ static int ScanConstants(lua_State *L, boolean mathlib, const char *word) } else if (fastncmp("TOL_", word, 4)) { p = word+4; + if (lua_compatmode && fastcmp(p, "MATCH")) + { + CacheAndPushConstant(L, word, ((lua_Integer)TOL_BATTLE)); + return 1; + } for (i = 0; TYPEOFLEVEL[i].name; i++) if (fastcmp(p, TYPEOFLEVEL[i].name)) { CacheAndPushConstant(L, word, TYPEOFLEVEL[i].flag);