From 06fb97bc40e23af63557b6c1b6b50b7898fad1b0 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 20 Jun 2013 00:10:13 -0400 Subject: [PATCH] fix BRMT always acting like it was created from TUGN --- .gitignore | 2 +- src/simulation/Simulation.cpp | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 15c661ae6..55204845b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ *.lua stdout.txt stderr.txt -build/* +build*/* stamps/* Saves/* generated/* diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index e696581f6..fedb989a1 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -3854,13 +3854,20 @@ void Simulation::update_particles_i(int start, int inc) } else if (t == PT_BRMT) { - if (parts[i].ctype == PT_TUNG && ctemph <= 3695.0) - s = 0; - else + if (parts[i].ctype == PT_TUNG) { - t = PT_LAVA; - parts[i].type = PT_TUNG; + if (ctemph <= 3695.0) + s = 0; + else + { + t = PT_LAVA; + parts[i].type = PT_TUNG; + } } + else if (ctemph >= elements[t].HighTemperature) + t = PT_LAVA; + else + s = 0; } else s = 0;