summaryrefslogtreecommitdiff
path: root/src/simulation/elements/FIGH.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-11 10:57:21 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-11 10:57:21 (GMT)
commit2f76c2374d9d8da0b3ed512113a611c9af5653b5 (patch)
treea760cab309c4c471a304305ed7852b1de1c15efd /src/simulation/elements/FIGH.cpp
parentca7b02dbfdd0c11bc9e01b606797f5274f548c6c (diff)
downloadpowder-2f76c2374d9d8da0b3ed512113a611c9af5653b5.zip
powder-2f76c2374d9d8da0b3ed512113a611c9af5653b5.tar.gz
TPT: Give menu color to elements without one (stickmen, TRON, and WARP)
Diffstat (limited to 'src/simulation/elements/FIGH.cpp')
-rw-r--r--src/simulation/elements/FIGH.cpp26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/simulation/elements/FIGH.cpp b/src/simulation/elements/FIGH.cpp
index 7ff1156..66be5bd 100644
--- a/src/simulation/elements/FIGH.cpp
+++ b/src/simulation/elements/FIGH.cpp
@@ -4,7 +4,7 @@ Element_FIGH::Element_FIGH()
{
Identifier = "DEFAULT_PT_FIGH";
Name = "FIGH";
- Colour = PIXPACK(0x000000);
+ Colour = PIXPACK(0xFFE0A0);
MenuVisible = 1;
MenuSection = SC_SPECIAL;
Enabled = 1;
@@ -43,7 +43,7 @@ Element_FIGH::Element_FIGH()
HighTemperatureTransition = PT_FIRE;
Update = &Element_FIGH::update;
- Graphics = &Element_FIGH::graphics;
+ Graphics = &Element_STKM::graphics;
}
//#TPT-Directive ElementHeader Element_FIGH static int update(UPDATE_FUNC_ARGS)
@@ -137,26 +137,4 @@ int Element_FIGH::update(UPDATE_FUNC_ARGS)
return 0;
}
-
-
-//#TPT-Directive ElementHeader Element_FIGH static int graphics(GRAPHICS_FUNC_ARGS)
-int Element_FIGH::graphics(GRAPHICS_FUNC_ARGS)
-
-{
- playerst * cplayer;// = &sim->fighters[(unsigned char)cpart->tmp];
- *pixel_mode = PSPEC_STICKMAN;
- /*if (cplayer->elem<PT_NUM)
- {
- *colr = PIXR(sim->elements[cplayer->elem].pcolors);
- *colg = PIXG(sim->elements[cplayer->elem].pcolors);
- *colb = PIXB(sim->elements[cplayer->elem].pcolors);
- }
- else*/
- {
- *colr = *colg = *colb = 255;
- }
- return 1;
-}
-
-
Element_FIGH::~Element_FIGH() {} \ No newline at end of file