Skip to content

Commit

Permalink
add TOOL_CYCL lua constant, change ID to 7
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Feb 15, 2018
1 parent 0a63e1a commit a0a7281
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lua/LuaScriptInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ void LuaScriptInterface::initSimulationAPI()
SETCONST(l, TOOL_PGRV);
SETCONST(l, TOOL_NGRV);
SETCONST(l, TOOL_MIX);
SETCONST(l, TOOL_CYCL);
lua_pushinteger(l, luacon_sim->tools.size()); lua_setfield(l, -2, "TOOL_WIND");
SETCONST(l, DECO_DRAW);
SETCONST(l, DECO_CLEAR);
Expand Down
4 changes: 2 additions & 2 deletions src/simulation/simtools/Cyclone.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "ToolClasses.h"
#include "simulation/Air.h"
//#TPT-Directive ToolClass Tool_Cycl TOOL_CYCL 8
//#TPT-Directive ToolClass Tool_Cycl TOOL_CYCL 7
Tool_Cycl::Tool_Cycl()
{
Identifier = "DEFAULT_TOOL_CYCL";
Name = "CYCL";
Colour = PIXPACK(0x132f5b);
Description = "Cyclone. Produces swirling air currents";
Description = "Cyclone, produces swirling air currents";
}

int Tool_Cycl::Perform(Simulation * sim, Particle * cpart, int x, int y, int brushX, int brushY, float strength)
Expand Down

0 comments on commit a0a7281

Please sign in to comment.