diff options
| author | jacob1 <jfu614@gmail.com> | 2013-05-17 00:04:39 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-05-17 00:04:39 (GMT) |
| commit | 7b6ded50dca6df5dfe2b22eb47de966e02878284 (patch) | |
| tree | 1606c21a619b3da1cd21d08471f2a713660104ad /src/cat/LuaScriptInterface.cpp | |
| parent | fd97e923f3f8409346723a9924761c9e21bb79d3 (diff) | |
| download | powder-7b6ded50dca6df5dfe2b22eb47de966e02878284.zip powder-7b6ded50dca6df5dfe2b22eb47de966e02878284.tar.gz | |
rename GRAV back to PGRV, fix formatting in generator, remove useless file
Diffstat (limited to 'src/cat/LuaScriptInterface.cpp')
| -rw-r--r-- | src/cat/LuaScriptInterface.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp index f257636..8cb01ee 100644 --- a/src/cat/LuaScriptInterface.cpp +++ b/src/cat/LuaScriptInterface.cpp @@ -15,6 +15,7 @@ #include "gui/dialogues/TextPrompt.h" #include "gui/dialogues/ConfirmPrompt.h" #include "simulation/Simulation.h" +#include "ToolClasses.h" #include "gui/game/GameModel.h" #include "gui/game/Tool.h" #include "LuaScriptHelper.h" @@ -482,12 +483,12 @@ void LuaScriptInterface::initSimulationAPI() lua_pushinteger(l, MAX_TEMP); lua_setfield(l, simulationAPI, "MAX_TEMP"); lua_pushinteger(l, MIN_TEMP); lua_setfield(l, simulationAPI, "MIN_TEMP"); - lua_pushinteger(l, 0); lua_setfield(l, simulationAPI, "TOOL_HEAT"); - lua_pushinteger(l, 1); lua_setfield(l, simulationAPI, "TOOL_COOL"); - lua_pushinteger(l, 2); lua_setfield(l, simulationAPI, "TOOL_VAC"); - lua_pushinteger(l, 3); lua_setfield(l, simulationAPI, "TOOL_AIR"); - lua_pushinteger(l, 4); lua_setfield(l, simulationAPI, "TOOL_PGRV"); - lua_pushinteger(l, 5); lua_setfield(l, simulationAPI, "TOOL_NGRV"); + lua_pushinteger(l, TOOL_HEAT); lua_setfield(l, simulationAPI, "TOOL_HEAT"); + lua_pushinteger(l, TOOL_COOL); lua_setfield(l, simulationAPI, "TOOL_COOL"); + lua_pushinteger(l, TOOL_VAC); lua_setfield(l, simulationAPI, "TOOL_VAC"); + lua_pushinteger(l, TOOL_AIR); lua_setfield(l, simulationAPI, "TOOL_AIR"); + lua_pushinteger(l, TOOL_PGRV); lua_setfield(l, simulationAPI, "TOOL_PGRV"); + lua_pushinteger(l, TOOL_NGRV); lua_setfield(l, simulationAPI, "TOOL_NGRV"); lua_pushinteger(l, DECO_DRAW); lua_setfield(l, simulationAPI, "DECO_DRAW"); lua_pushinteger(l, DECO_CLEAR); lua_setfield(l, simulationAPI, "DECO_CLEAR"); lua_pushinteger(l, DECO_ADD); lua_setfield(l, simulationAPI, "DECO_ADD"); |
