From 40d9f48b722caeb87b574fc9f136a46363d326e3 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 10 Aug 2012 10:23:11 -0400 Subject: [PATCH] cold phot doesn't burn things --- src/elements/phot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/elements/phot.c b/src/elements/phot.c index ba6fd2515..d014ba5f3 100644 --- a/src/elements/phot.c +++ b/src/elements/phot.c @@ -24,7 +24,8 @@ int update_PHOT(UPDATE_FUNC_ARGS) { kill_part(i); return 1; } - if (1>rand()%10) update_PYRO(UPDATE_FUNC_SUBCALL_ARGS); + if (parts[i].temp > 506) + if (1>rand()%10) update_PYRO(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