Permalink
Browse files

No black BIZR except by deco

  • Loading branch information...
jacksonmj committed Sep 2, 2014
1 parent 84f3f3c commit ba314577017eb57e7ff312a199b17988f21f588c
Showing with 15 additions and 12 deletions.
  1. +15 −12 src/simulation/elements/BIZR.cpp
@@ -96,19 +96,22 @@ int Element_BIZR::graphics(GRAPHICS_FUNC_ARGS)
//BIZR, BIZRG, BIZRS
{
int x = 0;
*colg = 0;
*colb = 0;
*colr = 0;
for (x=0; x<12; x++) {
*colr += (cpart->ctype >> (x+18)) & 1;
*colb += (cpart->ctype >> x) & 1;
if (cpart->ctype&0x3FFFFFFF)
{
*colg = 0;
*colb = 0;
*colr = 0;
for (x=0; x<12; x++) {
*colr += (cpart->ctype >> (x+18)) & 1;
*colb += (cpart->ctype >> x) & 1;
}
for (x=0; x<12; x++)
*colg += (cpart->ctype >> (x+9)) & 1;
x = *colr+*colg+*colb+1;
*colr = *colr*624/x;
*colg = *colg*624/x;
*colb = *colb*624/x;
}
for (x=0; x<12; x++)
*colg += (cpart->ctype >> (x+9)) & 1;
x = *colr+*colg+*colb+1;
*colr = *colr*624/x;
*colg = *colg*624/x;
*colb = *colb*624/x;
if(fabs(cpart->vx)+fabs(cpart->vy)>0)
{
*firea = 255;

0 comments on commit ba31457

Please sign in to comment.