From 14c0ea59a943e8d07dd28dcce3e18ff7cb6391ec Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 28 Aug 2012 15:09:32 +0100 Subject: [PATCH] cold phot doesn't burn things --- src/simulation/elements/PHOT.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/simulation/elements/PHOT.cpp b/src/simulation/elements/PHOT.cpp index a32c81f8f..d1531118a 100644 --- a/src/simulation/elements/PHOT.cpp +++ b/src/simulation/elements/PHOT.cpp @@ -57,7 +57,8 @@ int Element_PHOT::update(UPDATE_FUNC_ARGS) sim->kill_part(i); return 1; } - if (1>rand()%10) Element_FIRE::update(UPDATE_FUNC_SUBCALL_ARGS); + if (parts[i].temp > 506) + if (1>rand()%10) Element_FIRE::update(UPDATE_FUNC_SUBCALL_ARGS); for (rx=-1; rx<2; rx++) for (ry=-1; ry<2; ry++) if (x+rx>=0 && y+ry>=0 && x+rx