diff options
| author | jacob1 <jfu614@gmail.com> | 2013-05-17 16:44:18 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-05-17 16:44:18 (GMT) |
| commit | cbd402d8cb6aa699ffde83a1b5b3c2f4fc51baaf (patch) | |
| tree | 02504845d9742f026fc394d57bed270cccb4de25 /src/simulation | |
| parent | f35f22155423e37755625161135a2866d99bc0c1 (diff) | |
| download | powder-cbd402d8cb6aa699ffde83a1b5b3c2f4fc51baaf.zip powder-cbd402d8cb6aa699ffde83a1b5b3c2f4fc51baaf.tar.gz | |
fix CFLM making VIBR unable to explode
Diffstat (limited to 'src/simulation')
| -rw-r--r-- | src/simulation/elements/VIBR.cpp | 2 |
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; |
