Skip to content

Commit

Permalink
Deco off (except black deco) for LCRY in save thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonmj committed Nov 9, 2014
1 parent beff8e7 commit b3b8522
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/simulation/elements/LCRY.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit b3b8522

Please sign in to comment.