Use 1.6 version number in compat mode

Make sure mods that check version number actually think they are in kart
This commit is contained in:
NepDisk 2026-01-21 14:28:44 -05:00
parent adc7a4d9a9
commit 1be83f77b8

View file

@ -356,10 +356,16 @@ int LUA_PushGlobals(lua_State *L, const char *word)
lua_pushinteger(L, gravity);
return 1;
} else if (fastcmp(word,"VERSION")) {
lua_pushinteger(L, VERSION);
if (lua_compatmode)
lua_pushinteger(L, 1);
else
lua_pushinteger(L, VERSION);
return 1;
} else if (fastcmp(word,"SUBVERSION")) {
lua_pushinteger(L, SUBVERSION);
if (lua_compatmode)
lua_pushinteger(L, 6);
else
lua_pushinteger(L, SUBVERSION);
return 1;
} else if (fastcmp(word,"VERSIONSTRING")) {
lua_pushstring(L, VERSIONSTRING);