diff options
Diffstat (limited to 'src/simulation/tools/Cool.cpp')
| -rw-r--r-- | src/simulation/tools/Cool.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/simulation/tools/Cool.cpp b/src/simulation/tools/Cool.cpp index 16a7f91..db49e61 100644 --- a/src/simulation/tools/Cool.cpp +++ b/src/simulation/tools/Cool.cpp @@ -5,7 +5,7 @@ Tool_Cool::Tool_Cool() Identifier = "DEFAULT_TOOL_COOL"; Name = "COOL"; Colour = PIXPACK(0x00DDFF); - Description = "Cools particles"; + Description = "Cools the targeted element."; } int Tool_Cool::Perform(Simulation * sim, Particle * cpart, int x, int y, float strength) @@ -16,9 +16,10 @@ int Tool_Cool::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; } |
