summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-09-14 13:49:19 (GMT)
committer jacob1 <jfu614@gmail.com>2013-09-14 13:49:19 (GMT)
commitee093ae3b7f215d55a0807d880b80a9c0d6ef4f6 (patch)
tree2110229297b5450d1dd0604b727338483092d79a
parente1b26346a1063d62929fb03cdff4605509f53cc3 (diff)
downloadpowder-ee093ae3b7f215d55a0807d880b80a9c0d6ef4f6.zip
powder-ee093ae3b7f215d55a0807d880b80a9c0d6ef4f6.tar.gz
disable PHOT+H2 reaction during fusion
-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 0fce307..3cde255 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)
+ else if ((r&0xFF) == PT_H2 && pv[y/CELL][x/CELL] < 45.0f)
{
create_part(i, x, y, PT_PROT);
parts[i].tmp2 = 0x1;