Permalink
Browse files

fix PHOT/PLSM not following the correct heat scale, fixes #336

Still many issues if you manually add on other effects to heat mode, but at least now the default graphics are fine
  • Loading branch information...
jacob1 committed May 10, 2017
1 parent ec41709 commit f54189a97f6d80181deb4f6d952ccf10f0e59ccf
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/graphics/Renderer.cpp
@@ -1367,6 +1367,8 @@ void Renderer::render_parts()
cola = 255;
if(pixel_mode & (FIREMODE | PMODE_GLOW))
pixel_mode = (pixel_mode & ~(FIREMODE|PMODE_GLOW)) | PMODE_BLUR;
else if ((pixel_mode & (PMODE_BLEND | PMODE_ADD)) == (PMODE_BLEND | PMODE_ADD))
pixel_mode = (pixel_mode & ~(PMODE_BLEND|PMODE_ADD)) | PMODE_FLAT;
else if (!pixel_mode)
pixel_mode |= PMODE_FLAT;
}
@@ -1381,6 +1383,8 @@ void Renderer::render_parts()
cola = 255;
if(pixel_mode & (FIREMODE | PMODE_GLOW))
pixel_mode = (pixel_mode & ~(FIREMODE|PMODE_GLOW)) | PMODE_BLUR;
else if ((pixel_mode & (PMODE_BLEND | PMODE_ADD)) == (PMODE_BLEND | PMODE_ADD))
pixel_mode = (pixel_mode & ~(PMODE_BLEND|PMODE_ADD)) | PMODE_FLAT;
else if (!pixel_mode)
pixel_mode |= PMODE_FLAT;
}

0 comments on commit f54189a

Please sign in to comment.