Skip to content

Commit

Permalink
Add sim.CELL constant + some other change I made a while ago for some…
Browse files Browse the repository at this point in the history
… reason
  • Loading branch information
jacob1 committed May 15, 2019
1 parent c193e88 commit 20c98e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/LegacyLuaAPI.cpp
Expand Up @@ -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");
}
Expand Down
1 change: 1 addition & 0 deletions src/lua/LuaScriptInterface.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 20c98e9

Please sign in to comment.