Add sim.CELL constant + some other change I made a while ago for some reason
This commit is contained in:
parent
c193e88c28
commit
20c98e9b48
@ -1369,7 +1369,7 @@ int luatpt_getscript(lua_State* l)
|
|||||||
return luaL_error(l, http::StatusText(ret).ToUtf8().c_str());
|
return luaL_error(l, http::StatusText(ret).ToUtf8().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(scriptData.c_str(), "Invalid script ID\r\n"))
|
if (scriptData.Contains("Invalid script ID"))
|
||||||
{
|
{
|
||||||
return luaL_error(l, "Invalid Script ID");
|
return luaL_error(l, "Invalid Script ID");
|
||||||
}
|
}
|
||||||
|
@ -789,6 +789,7 @@ void LuaScriptInterface::initSimulationAPI()
|
|||||||
//Static values
|
//Static values
|
||||||
SETCONST(l, XRES);
|
SETCONST(l, XRES);
|
||||||
SETCONST(l, YRES);
|
SETCONST(l, YRES);
|
||||||
|
SETCONST(l, CELL);
|
||||||
SETCONST(l, PT_NUM);
|
SETCONST(l, PT_NUM);
|
||||||
lua_pushinteger(l, 0); lua_setfield(l, -2, "NUM_PARTS");
|
lua_pushinteger(l, 0); lua_setfield(l, -2, "NUM_PARTS");
|
||||||
SETCONST(l, R_TEMP);
|
SETCONST(l, R_TEMP);
|
||||||
|
Reference in New Issue
Block a user