diff options
| author | Simon 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) |
| commit | 065ca8b9f53d861f4ddf474b049f2501ce0586e3 (patch) | |
| tree | c9ba5a693bc66775be37cbad1d36d5e01bb0a1e5 /src/simulation/Simulation.cpp | |
| parent | 475fd1a0b8f8883506f059223079147ca4b8c385 (diff) | |
| download | powder-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/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index f25a124..b86b9a7 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -3003,7 +3003,7 @@ killed: kill_part(i); continue; } - if (!parts[i].ctype&&t!=PT_NEUT&&t!=PT_ELEC) { + if (!(parts[i].ctype&0x3FFFFFFF)&&t!=PT_NEUT&&t!=PT_ELEC) { kill_part(i); continue; } |
