Use HFLM colour data, addresses some of issue #41

This commit is contained in:
Simon Robertshaw 2012-08-03 01:18:39 +01:00
parent fbaf149a92
commit 4233bc743c

View File

@ -1,4 +1,9 @@
#include "simulation/Elements.h" #include "simulation/Elements.h"
extern "C"
{
#include "hmap.h"
}
//#TPT-Directive ElementClass Element_HFLM PT_HFLM 68 //#TPT-Directive ElementClass Element_HFLM PT_HFLM 68
Element_HFLM::Element_HFLM() Element_HFLM::Element_HFLM()
{ {
@ -51,9 +56,9 @@ int Element_HFLM::graphics(GRAPHICS_FUNC_ARGS)
{ {
int caddress = restrict_flt(restrict_flt((float)((int)(cpart->life/2)), 0.0f, 200.0f)*3, 0.0f, (200.0f*3)-3); int caddress = restrict_flt(restrict_flt((float)((int)(cpart->life/2)), 0.0f, 200.0f)*3, 0.0f, (200.0f*3)-3);
*colr = 0;//(unsigned char)hflm_data[caddress]; *colr = (unsigned char)hflm_data[caddress];
*colg = 0;//(unsigned char)hflm_data[caddress+1]; *colg = (unsigned char)hflm_data[caddress+1];
*colb = 0;//(unsigned char)hflm_data[caddress+2]; *colb = (unsigned char)hflm_data[caddress+2];
*firea = 255; *firea = 255;
*firer = *colr; *firer = *colr;