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);