diff options
Diffstat (limited to 'src/simulation/elements/SOAP.cpp')
| -rw-r--r-- | src/simulation/elements/SOAP.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simulation/elements/SOAP.cpp b/src/simulation/elements/SOAP.cpp index f122c1f..f66334e 100644 --- a/src/simulation/elements/SOAP.cpp +++ b/src/simulation/elements/SOAP.cpp @@ -64,13 +64,13 @@ int Element_SOAP::update(UPDATE_FUNC_ARGS) { if (parts[i].life<=0) { - if ((parts[i].ctype&6) != 6 && parts[i].ctype>1) + if ((parts[i].ctype&6) != 6 && (parts[i].ctype&6)) { int target; target = i; - while((parts[target].ctype&6) != 6 && parts[target].ctype>1) + while((parts[target].ctype&6) != 6 && (parts[target].ctype&6)) { if ((parts[target].ctype&2) == 2) { @@ -282,4 +282,4 @@ int Element_SOAP::update(UPDATE_FUNC_ARGS) } -Element_SOAP::~Element_SOAP() {}
\ No newline at end of file +Element_SOAP::~Element_SOAP() {} |
