summaryrefslogtreecommitdiff
path: root/src/simulation/tools/Heat.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-06-07 03:23:48 (GMT)
committer jacob1 <jfu614@gmail.com>2013-06-07 03:28:07 (GMT)
commite146ae50abc021cbff765aa73327408c7d4661ea (patch)
tree8f1686a726d6e64d3dce313e3b1f2708aa4b7661 /src/simulation/tools/Heat.cpp
parent76b92952b12f0eeaedbf3f2e4231dbd72b6d902a (diff)
downloadpowder-e146ae50abc021cbff765aa73327408c7d4661ea.zip
powder-e146ae50abc021cbff765aa73327408c7d4661ea.tar.gz
some minor changes to tools
Diffstat (limited to 'src/simulation/tools/Heat.cpp')
-rw-r--r--src/simulation/tools/Heat.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/simulation/tools/Heat.cpp b/src/simulation/tools/Heat.cpp
index 0d77d55..dac3347 100644
--- a/src/simulation/tools/Heat.cpp
+++ b/src/simulation/tools/Heat.cpp
@@ -5,7 +5,7 @@ Tool_Heat::Tool_Heat()
Identifier = "DEFAULT_TOOL_HEAT";
Name = "HEAT";
Colour = PIXPACK(0xFFDD00);
- Description = "Heats particles";
+ Description = "Heats the targeted element.";
}
int Tool_Heat::Perform(Simulation * sim, Particle * cpart, int x, int y, float strength)
@@ -16,9 +16,10 @@ int Tool_Heat::Perform(Simulation * sim, Particle * cpart, int x, int y, float s
cpart->temp += strength*.1f;
else
cpart->temp += strength*2.0f;
- if(cpart->temp > MAX_TEMP)
+
+ if (cpart->temp > MAX_TEMP)
cpart->temp = MAX_TEMP;
- if(cpart->temp < 0)
+ else if (cpart->temp < 0)
cpart->temp = 0;
return 1;
}