Permalink
Browse files

add TOOL_CYCL lua constant, change ID to 7

  • Loading branch information...
jacob1 committed Feb 15, 2018
1 parent 0a63e1a commit a0a7281cc736ec7badc59f6d23e630b29d205407
Showing with 3 additions and 2 deletions.
  1. +1 −0 src/lua/LuaScriptInterface.cpp
  2. +2 −2 src/simulation/simtools/Cyclone.cpp
@@ -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);
@@ -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)

0 comments on commit a0a7281

Please sign in to comment.