summaryrefslogtreecommitdiff
path: root/src/simulation/elements/EXOT.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/elements/EXOT.cpp')
-rw-r--r--src/simulation/elements/EXOT.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/simulation/elements/EXOT.cpp b/src/simulation/elements/EXOT.cpp
index 466fb9c..140383c 100644
--- a/src/simulation/elements/EXOT.cpp
+++ b/src/simulation/elements/EXOT.cpp
@@ -63,8 +63,11 @@ int Element_EXOT::update(UPDATE_FUNC_ARGS) {
parts[i].tmp2 += 100;
}
}
- else if (rt == PT_EXOT && parts[r>>8].life == 1500 && !(rand()%1000))
- parts[i].life = 1500;
+ else if (rt == PT_EXOT)
+ {
+ if (parts[r>>8].life == 1500 && !(rand()%1000))
+ parts[i].life = 1500;
+ }
else if (rt == PT_LAVA)
{
if (parts[r>>8].ctype == PT_TTAN && !(rand()%10))