mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 12:02:40 +02:00
fix virus graphics
This commit is contained in:
@@ -153,6 +153,7 @@ int Element_VIRS::update(UPDATE_FUNC_ARGS)
|
|||||||
//#TPT-Directive ElementHeader Element_VIRS static int graphics(GRAPHICS_FUNC_ARGS)
|
//#TPT-Directive ElementHeader Element_VIRS static int graphics(GRAPHICS_FUNC_ARGS)
|
||||||
int Element_VIRS::graphics(GRAPHICS_FUNC_ARGS)
|
int Element_VIRS::graphics(GRAPHICS_FUNC_ARGS)
|
||||||
{
|
{
|
||||||
|
*pixel_mode |= PMODE_BLUR;
|
||||||
*pixel_mode |= NO_DECO;
|
*pixel_mode |= NO_DECO;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@@ -43,7 +43,21 @@ Element_VRSG::Element_VRSG()
|
|||||||
HighTemperatureTransition = NT;
|
HighTemperatureTransition = NT;
|
||||||
|
|
||||||
Update = &Element_VIRS::update;
|
Update = &Element_VIRS::update;
|
||||||
Graphics = &Element_VIRS::graphics;
|
Graphics = &Element_VRSG::graphics;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//#TPT-Directive ElementHeader Element_VRSG static int graphics(GRAPHICS_FUNC_ARGS)
|
||||||
|
int Element_VRSG::graphics(GRAPHICS_FUNC_ARGS)
|
||||||
|
{
|
||||||
|
*pixel_mode &= ~PMODE;
|
||||||
|
*pixel_mode |= FIRE_BLEND;
|
||||||
|
*firer = *colr/2;
|
||||||
|
*fireg = *colg/2;
|
||||||
|
*fireb = *colb/2;
|
||||||
|
*firea = 125;
|
||||||
|
*pixel_mode |= NO_DECO;
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Element_VRSG::~Element_VRSG() {}
|
Element_VRSG::~Element_VRSG() {}
|
||||||
|
@@ -43,7 +43,14 @@ Element_VRSS::Element_VRSS()
|
|||||||
HighTemperatureTransition = PT_VIRS;
|
HighTemperatureTransition = PT_VIRS;
|
||||||
|
|
||||||
Update = &Element_VIRS::update;
|
Update = &Element_VIRS::update;
|
||||||
Graphics = &Element_VIRS::graphics;
|
Graphics = &Element_VRSS::graphics;
|
||||||
|
}
|
||||||
|
|
||||||
|
//#TPT-Directive ElementHeader Element_VRSS static int graphics(GRAPHICS_FUNC_ARGS)
|
||||||
|
int Element_VRSS::graphics(GRAPHICS_FUNC_ARGS)
|
||||||
|
{
|
||||||
|
*pixel_mode |= NO_DECO;
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Element_VRSS::~Element_VRSS() {}
|
Element_VRSS::~Element_VRSS() {}
|
||||||
|
Reference in New Issue
Block a user