diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-28 14:09:32 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-28 14:09:32 (GMT) |
| commit | 14c0ea59a943e8d07dd28dcce3e18ff7cb6391ec (patch) | |
| tree | 015edf1157a87fb5c05ffd8e80ed3177192e2073 /src/simulation/elements/PHOT.cpp | |
| parent | 05e32f169844c37afc6ff8dbf5c32bf025154ea8 (diff) | |
| download | powder-14c0ea59a943e8d07dd28dcce3e18ff7cb6391ec.zip powder-14c0ea59a943e8d07dd28dcce3e18ff7cb6391ec.tar.gz | |
cold phot doesn't burn things
Diffstat (limited to 'src/simulation/elements/PHOT.cpp')
| -rw-r--r-- | src/simulation/elements/PHOT.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/simulation/elements/PHOT.cpp b/src/simulation/elements/PHOT.cpp index a32c81f..d153111 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<XRES && y+ry<YRES && (rx || ry)) { |
