fix BRMT always acting like it was created from TUGN

This commit is contained in:
jacob1 2013-06-20 00:10:13 -04:00
parent 53ae6ee517
commit 06fb97bc40
2 changed files with 13 additions and 6 deletions

2
.gitignore vendored
View File

@ -11,7 +11,7 @@
*.lua
stdout.txt
stderr.txt
build/*
build*/*
stamps/*
Saves/*
generated/*

View File

@ -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;