diff options
Diffstat (limited to 'src/simulation/elements/DUST.cpp')
| -rw-r--r-- | src/simulation/elements/DUST.cpp | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/src/simulation/elements/DUST.cpp b/src/simulation/elements/DUST.cpp index 353bfbd..924dabb 100644 --- a/src/simulation/elements/DUST.cpp +++ b/src/simulation/elements/DUST.cpp @@ -43,34 +43,7 @@ Element_DUST::Element_DUST() HighTemperatureTransition = NT; Update = NULL; - Graphics = &Element_DUST::graphics; + Graphics = NULL; } -//#TPT-Directive ElementHeader Element_DUST static int graphics(GRAPHICS_FUNC_ARGS) -int Element_DUST::graphics(GRAPHICS_FUNC_ARGS) - -{ - if(cpart->life >= 1) - { - *firea = 120; - *firer = *colr = cpart->flags; - *fireg = *colg = cpart->tmp; - *fireb = *colb = cpart->ctype; - if (ren->decorations_enable && cpart->dcolour) - { - int a = (cpart->dcolour>>24)&0xFF; - *firer = *colr = (a*((cpart->dcolour>>16)&0xFF) + (255-a)**colr) >> 8; - *fireg = *colg = (a*((cpart->dcolour>>8)&0xFF) + (255-a)**colg) >> 8; - *fireb = *colb = (a*((cpart->dcolour)&0xFF) + (255-a)**colb) >> 8; - } - *pixel_mode |= PMODE_GLOW | FIRE_ADD; - /**firea = 255; - *firer = *colr; - *fireg = *colg; - *fireb = *colb;*/ - } - return 0; -} - - Element_DUST::~Element_DUST() {}
\ No newline at end of file |
