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
This commit is contained in:
jacob1 2017-05-09 22:43:53 -04:00
parent ec417095b9
commit f54189a97f

View File

@ -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;
}