Skip to content
Permalink
Browse files

Add sim.CELL constant + some other change I made a while ago for some…

… reason
  • Loading branch information...
jacob1 committed May 15, 2019
1 parent c193e88 commit 20c98e9b48e920803c9b2dbd2ef45745786d49a0
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/lua/LegacyLuaAPI.cpp
  2. +1 −0 src/lua/LuaScriptInterface.cpp
@@ -1369,7 +1369,7 @@ int luatpt_getscript(lua_State* l)
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");
}
@@ -789,6 +789,7 @@ void LuaScriptInterface::initSimulationAPI()
//Static values
SETCONST(l, XRES);
SETCONST(l, YRES);
SETCONST(l, CELL);
SETCONST(l, PT_NUM);
lua_pushinteger(l, 0); lua_setfield(l, -2, "NUM_PARTS");
SETCONST(l, R_TEMP);

0 comments on commit 20c98e9

Please sign in to comment.
You can’t perform that action at this time.