Permalink
Browse files

Deco off (except black deco) for LCRY in save thumbnails

  • Loading branch information...
jacksonmj committed Nov 9, 2014
1 parent beff8e7 commit b3b852249bea5393aeb7fbc1d72e2da9432ec5c0
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/simulation/elements/LCRY.cpp
@@ -102,9 +102,17 @@ int Element_LCRY::update(UPDATE_FUNC_ARGS)
//#TPT-Directive ElementHeader Element_LCRY static int graphics(GRAPHICS_FUNC_ARGS)
int Element_LCRY::graphics(GRAPHICS_FUNC_ARGS)
{
if(ren->decorations_enable && cpart->dcolour && (cpart->dcolour&0xFF000000))
bool deco = false;
if (ren->decorations_enable && cpart->dcolour && (cpart->dcolour&0xFF000000))
{
if (!ren->blackDecorations) // if blackDecorations is off, always show deco
deco = true;
else if(((cpart->dcolour>>24)&0xFF) >= 250 && ((cpart->dcolour>>16)&0xFF) <= 5 && ((cpart->dcolour>>8)&0xFF) <= 5 && ((cpart->dcolour)&0xFF) <= 5) // else only render black deco
deco = true;
}
if(deco)
{
*colr = (cpart->dcolour>>16)&0xFF;
*colg = (cpart->dcolour>>8)&0xFF;

0 comments on commit b3b8522

Please sign in to comment.