summaryrefslogtreecommitdiff
path: root/src/simulation/elements/CRAY.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-03-07 02:13:42 (GMT)
committer jacob1 <jfu614@gmail.com>2013-03-07 02:13:42 (GMT)
commita411fda7de787c091be028f2fe9af865c5274f2e (patch)
tree20e7997354e40beaf378b116e6e1110f2e034a4c /src/simulation/elements/CRAY.cpp
parent9316054ab2c55ea3a01a08a505da424a7a5d6688 (diff)
downloadpowder-a411fda7de787c091be028f2fe9af865c5274f2e.zip
powder-a411fda7de787c091be028f2fe9af865c5274f2e.tar.gz
fix CRAY(SPRK) difference
Diffstat (limited to 'src/simulation/elements/CRAY.cpp')
-rw-r--r--src/simulation/elements/CRAY.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/CRAY.cpp b/src/simulation/elements/CRAY.cpp
index 3999f1f..7b56a09 100644
--- a/src/simulation/elements/CRAY.cpp
+++ b/src/simulation/elements/CRAY.cpp
@@ -98,9 +98,9 @@ int Element_CRAY::update(UPDATE_FUNC_ARGS)
if (nr!=-1) {
parts[nr].dcolour = colored;
parts[nr].temp = parts[i].temp;
+ if(!--partsRemaining)
+ docontinue = 0;
}
- if(!--partsRemaining)
- docontinue = 0;
} else if ((r&0xFF)==PT_FILT) { // get color if passed through FILT
colored = wavelengthToDecoColour(parts[r>>8].ctype);
} else if ((r&0xFF) == PT_CRAY || nostop) {