Toss some backcompat lua shit under lua_compatmode
This commit is contained in:
parent
286592bd97
commit
760a8574c2
2 changed files with 3 additions and 3 deletions
|
|
@ -249,7 +249,7 @@ static int io_open (lua_State *L) {
|
|||
{
|
||||
luaL_checktype(L, 3, LUA_TFUNCTION);
|
||||
}
|
||||
else
|
||||
else if (lua_compatmode)
|
||||
{
|
||||
return io_openlocal(L);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2066,12 +2066,12 @@ static int lib_pSetupLevelSky(lua_State *L)
|
|||
NOHUD
|
||||
INLEVEL
|
||||
|
||||
if (lua_isnumber(L, 1))
|
||||
if (lua_isnumber(L, 1) && lua_compatmode)
|
||||
{
|
||||
skytexname = luaL_checkstring(L, 1);
|
||||
skytexname = va("SKY%s",skytexname);
|
||||
}
|
||||
else if (lua_isnil(L, 1))
|
||||
else if (lua_isnil(L, 1) && lua_compatmode)
|
||||
skytexname = mapheaderinfo[gamemap-1]->skytexture;
|
||||
else
|
||||
skytexname = luaL_checkstring(L, 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue