multiple BRCK colors (suggested by Catelite)
This commit is contained in:
parent
a16534e782
commit
f19f393e22
@ -50,15 +50,34 @@ Element_BRCK::Element_BRCK()
|
|||||||
int Element_BRCK::graphics(GRAPHICS_FUNC_ARGS)
|
int Element_BRCK::graphics(GRAPHICS_FUNC_ARGS)
|
||||||
{
|
{
|
||||||
if (cpart->tmp == 1)
|
if (cpart->tmp == 1)
|
||||||
{
|
|
||||||
*pixel_mode |= FIRE_ADD;
|
|
||||||
*colb += 100;
|
*colb += 100;
|
||||||
|
else if (cpart->tmp == 2)
|
||||||
|
*colr += 100;
|
||||||
|
else if (cpart->tmp == 3)
|
||||||
|
*colg += 100;
|
||||||
|
else if (cpart->tmp == 4) {
|
||||||
|
*colg += 100;
|
||||||
|
*colb += 100;
|
||||||
|
}
|
||||||
|
else if (cpart->tmp == 5) {
|
||||||
|
*colg += 100;
|
||||||
|
*colr += 100;
|
||||||
|
}
|
||||||
|
else if (cpart->tmp == 6) {
|
||||||
|
*colr += 100;
|
||||||
|
*colb += 100;
|
||||||
|
}
|
||||||
|
else if (cpart->tmp == 7) {
|
||||||
|
*colr += 100;
|
||||||
|
*colg += 100;
|
||||||
|
*colb += 100;
|
||||||
|
}
|
||||||
|
|
||||||
*firea = 40;
|
*pixel_mode |= FIRE_ADD;
|
||||||
*firer = *colr;
|
*firea = 40;
|
||||||
*fireg = *colg;
|
*firer = *colr;
|
||||||
*fireb = *colb;
|
*fireg = *colg;
|
||||||
}
|
*fireb = *colb;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user