summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-10-20 14:37:28 (GMT)
committer jacob1 <jfu614@gmail.com>2013-10-20 14:37:28 (GMT)
commitdd73a7244f49de54ccd35a7cf1fdafd1a557e505 (patch)
treeb9a6bb868185f2eb3f64f44262f28334ef66a0d2 /src/simulation/Simulation.cpp
parentb4761e47ddac23f7a52b714e2e0631dda1708a79 (diff)
downloadpowder-dd73a7244f49de54ccd35a7cf1fdafd1a557e505.zip
powder-dd73a7244f49de54ccd35a7cf1fdafd1a557e505.tar.gz
reduce / prevent PROT in fusion even more
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 76c0830..60ca1f7 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -2216,7 +2216,7 @@ int Simulation::try_move(int i, int x, int y, int nx, int ny)
part_change_type(i, x, y, PT_ELEC);
parts[i].ctype = 0;
}
- else if ((r&0xFF) == PT_H2 && pv[y/CELL][x/CELL] < 45.0f)
+ else if ((r&0xFF) == PT_H2 && pv[y/CELL][x/CELL] < 45.0f && parts[i].temp < 3000)
{
part_change_type(i, x, y, PT_PROT);
parts[i].ctype = 0;