mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-26 09:24:28 +02:00
No black BIZR except by deco
This commit is contained in:
@@ -96,6 +96,8 @@ int Element_BIZR::graphics(GRAPHICS_FUNC_ARGS)
|
||||
//BIZR, BIZRG, BIZRS
|
||||
{
|
||||
int x = 0;
|
||||
if (cpart->ctype&0x3FFFFFFF)
|
||||
{
|
||||
*colg = 0;
|
||||
*colb = 0;
|
||||
*colr = 0;
|
||||
@@ -109,6 +111,7 @@ int Element_BIZR::graphics(GRAPHICS_FUNC_ARGS)
|
||||
*colr = *colr*624/x;
|
||||
*colg = *colg*624/x;
|
||||
*colb = *colb*624/x;
|
||||
}
|
||||
if(fabs(cpart->vx)+fabs(cpart->vy)>0)
|
||||
{
|
||||
*firea = 255;
|
||||
|
Reference in New Issue
Block a user