summaryrefslogtreecommitdiff
path: root/src/simulation/elements
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-05-17 16:44:18 (GMT)
committer jacob1 <jfu614@gmail.com>2013-05-17 16:44:18 (GMT)
commitcbd402d8cb6aa699ffde83a1b5b3c2f4fc51baaf (patch)
tree02504845d9742f026fc394d57bed270cccb4de25 /src/simulation/elements
parentf35f22155423e37755625161135a2866d99bc0c1 (diff)
downloadpowder-cbd402d8cb6aa699ffde83a1b5b3c2f4fc51baaf.zip
powder-cbd402d8cb6aa699ffde83a1b5b3c2f4fc51baaf.tar.gz
fix CFLM making VIBR unable to explode
Diffstat (limited to 'src/simulation/elements')
-rw-r--r--src/simulation/elements/VIBR.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/VIBR.cpp b/src/simulation/elements/VIBR.cpp
index 0d27702..cf6d2f5 100644
--- a/src/simulation/elements/VIBR.cpp
+++ b/src/simulation/elements/VIBR.cpp
@@ -157,7 +157,7 @@ int Element_VIBR::update(UPDATE_FUNC_ARGS) {
{
if (!parts[r>>8].life)
parts[r>>8].tmp += 45;
- else if (parts[i].tmp2 && rand()%2)
+ else if (parts[i].tmp2 && parts[i].life > 75 && rand()%2)
{
parts[r>>8].tmp2 = 1;
parts[i].tmp = 0;