summaryrefslogtreecommitdiff
path: root/src/simulation/elements/CLST.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/elements/CLST.cpp')
-rw-r--r--src/simulation/elements/CLST.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/simulation/elements/CLST.cpp b/src/simulation/elements/CLST.cpp
index ab62acb..5a9d79f 100644
--- a/src/simulation/elements/CLST.cpp
+++ b/src/simulation/elements/CLST.cpp
@@ -72,11 +72,11 @@ int Element_CLST::update(UPDATE_FUNC_ARGS)
{
if(parts[i].temp <195)
cxy = 0.05;
- if(parts[i].temp >= 195 && parts[i].temp <295)
+ else if(parts[i].temp >= 195 && parts[i].temp <295)
cxy = 0.015;
- if(parts[i].temp >= 295 && parts[i].temp <350)
+ else if(parts[i].temp >= 295 && parts[i].temp <350)
cxy = 0.01;
- if(parts[i].temp >= 350)
+ else
cxy = 0.005;
parts[i].vx += cxy*rx;
parts[i].vy += cxy*ry;//These two can be set not to calculate over 350 later. They do virtually nothing over 0.005.
@@ -98,4 +98,4 @@ int Element_CLST::graphics(GRAPHICS_FUNC_ARGS)
}
-Element_CLST::~Element_CLST() {} \ No newline at end of file
+Element_CLST::~Element_CLST() {}