Match is battle

This commit is contained in:
NepDisk 2025-03-03 13:49:16 -05:00
parent 96ce824155
commit 037a75df08

View file

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