diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-10-01 20:54:52 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-10-01 20:54:52 (GMT) |
| commit | b98f5faaceff4b8dee4de763678b7c73a1143476 (patch) | |
| tree | a1f35d96e17d832b2072bce23e6126f4ffa33528 /src/simulation/elements/PHOT.cpp | |
| parent | 0e394ed62e4a369bb57fe62137878d255c558cb0 (diff) | |
| download | powder-b98f5faaceff4b8dee4de763678b7c73a1143476.zip powder-b98f5faaceff4b8dee4de763678b7c73a1143476.tar.gz | |
Fix photon blending mode
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 d153111..ac8c5c8 100644 --- a/src/simulation/elements/PHOT.cpp +++ b/src/simulation/elements/PHOT.cpp @@ -132,7 +132,8 @@ int Element_PHOT::graphics(GRAPHICS_FUNC_ARGS) *fireg = *colg; *fireb = *colb; - *pixel_mode |= FIRE_ADD; + *pixel_mode &= ~PMODE_FLAT; + *pixel_mode |= FIRE_ADD | PMODE_ADD; return 0; } |
