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:
parent
adc7a4d9a9
commit
1be83f77b8
1 changed files with 8 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue