diff options
| author | cracker64 <cracker642@gmail.com> | 2013-02-27 05:11:23 (GMT) |
|---|---|---|
| committer | cracker64 <cracker642@gmail.com> | 2013-02-27 05:11:23 (GMT) |
| commit | 27e3e1251837f5d64e835068d5f5bd5b67b95921 (patch) | |
| tree | af6383f7df96485633c91ebcfbe6318ee927403f /src/simulation/elements/CLST.cpp | |
| parent | a62467c74e9391dd2a9173cfa167d32eceed506b (diff) | |
| download | powder-27e3e1251837f5d64e835068d5f5bd5b67b95921.zip powder-27e3e1251837f5d64e835068d5f5bd5b67b95921.tar.gz | |
Small optimizations number 2.
Diffstat (limited to 'src/simulation/elements/CLST.cpp')
| -rw-r--r-- | src/simulation/elements/CLST.cpp | 8 |
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() {} |
