summaryrefslogtreecommitdiff
path: root/src/simulation/elements
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-02-17 11:31:03 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-02-17 11:31:03 (GMT)
commit81f92ed0ecaef62367d249e43e464d98983cb958 (patch)
treef8bedea04aa70d2ba910e9f5c363edc2759c1b9d /src/simulation/elements
parent5beb4255c8972cf997c72e011db6afbd77d5be48 (diff)
parenta3454c49be3ea720e081b508a502b6fae98d7ee1 (diff)
downloadpowder-81f92ed0ecaef62367d249e43e464d98983cb958.zip
powder-81f92ed0ecaef62367d249e43e464d98983cb958.tar.gz
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
Diffstat (limited to 'src/simulation/elements')
-rw-r--r--src/simulation/elements/CRAY.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/CRAY.cpp b/src/simulation/elements/CRAY.cpp
index b3f51ff..0638f73 100644
--- a/src/simulation/elements/CRAY.cpp
+++ b/src/simulation/elements/CRAY.cpp
@@ -96,7 +96,7 @@ int Element_CRAY::update(UPDATE_FUNC_ARGS)
colored = wavelengthToDecoColour(parts[r>>8].ctype);
} else if ((r&0xFF)==PT_CRAY || nostop) {
docontinue = 1;
- } else if(destroy && (r&0xFF != PT_DMND)) {
+ } else if(destroy && ((r&0xFF) != PT_DMND)) {
sim->kill_part(r>>8);
if(!--partsRemaining)
docontinue = 0;