summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-17 15:33:04 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-17 15:33:04 (GMT)
commit065ca8b9f53d861f4ddf474b049f2501ce0586e3 (patch)
treec9ba5a693bc66775be37cbad1d36d5e01bb0a1e5 /src/elements
parent475fd1a0b8f8883506f059223079147ca4b8c385 (diff)
downloadpowder-065ca8b9f53d861f4ddf474b049f2501ce0586e3.zip
powder-065ca8b9f53d861f4ddf474b049f2501ce0586e3.tar.gz
TPT: Only check the bits actually used for wavelength in photon ctype Fixes black photons not being killed after passing through pipe 748a528fe0
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/phot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/phot.cpp b/src/elements/phot.cpp
index 407ac2e..29d534b 100644
--- a/src/elements/phot.cpp
+++ b/src/elements/phot.cpp
@@ -5,7 +5,7 @@ int update_PHOT(UPDATE_FUNC_ARGS) {
float rr, rrr;
parts[i].pavg[0] = x;
parts[i].pavg[1] = y;
- if (!parts[i].ctype) {
+ if (!(parts[i].ctype&0x3FFFFFFF)) {
sim->kill_part(i);
return 1;
}