summaryrefslogtreecommitdiff
path: root/src/simulation/elements/FWRK.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/elements/FWRK.cpp')
-rw-r--r--src/simulation/elements/FWRK.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simulation/elements/FWRK.cpp b/src/simulation/elements/FWRK.cpp
index f05db69..a16fbc6 100644
--- a/src/simulation/elements/FWRK.cpp
+++ b/src/simulation/elements/FWRK.cpp
@@ -83,8 +83,6 @@ int Element_FWRK::update(UPDATE_FUNC_ARGS)
return 0;
}
}
- if (parts[i].life>=45)
- parts[i].life=0;
if (parts[i].life<3&&parts[i].life>0)
{
int r = (rand()%245+11);
@@ -113,8 +111,10 @@ int Element_FWRK::update(UPDATE_FUNC_ARGS)
sim->kill_part(i);
return 1;
}
+ if (parts[i].life>=45)
+ parts[i].life=0;
return 0;
}
-Element_FWRK::~Element_FWRK() {} \ No newline at end of file
+Element_FWRK::~Element_FWRK() {}