summaryrefslogtreecommitdiff
path: root/src/simulation/elements/IGNT.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/elements/IGNT.cpp')
-rw-r--r--src/simulation/elements/IGNT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/IGNT.cpp b/src/simulation/elements/IGNT.cpp
index b1afe92..85a2441 100644
--- a/src/simulation/elements/IGNT.cpp
+++ b/src/simulation/elements/IGNT.cpp
@@ -76,7 +76,7 @@ int Element_IGNT::update(UPDATE_FUNC_ARGS)
parts[nb].life = 30;
parts[nb].vx = rand()%20-10;
parts[nb].vy = rand()%20-10;
- parts[nb].temp = restrict_flt(400.0f+parts[i].temp-273.15, MIN_TEMP, MAX_TEMP);
+ parts[nb].temp = restrict_flt(parts[i].temp-273.15f+400.0f, MIN_TEMP, MAX_TEMP);
}
}
else