summaryrefslogtreecommitdiff
path: root/src/simulation/elements/STKM.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/STKM.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/STKM.cpp')
-rw-r--r--src/simulation/elements/STKM.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/simulation/elements/STKM.cpp b/src/simulation/elements/STKM.cpp
index 7f7476b..9024e08 100644
--- a/src/simulation/elements/STKM.cpp
+++ b/src/simulation/elements/STKM.cpp
@@ -4,7 +4,7 @@ Element_STKM::Element_STKM()
{
Identifier = "DEFAULT_PT_STKM";
Name = "STKM";
- Colour = PIXPACK(0x000000);
+ Colour = PIXPACK(0xFFE0A0);
MenuVisible = 1;
MenuSection = SC_SPECIAL;
Enabled = 1;
@@ -58,19 +58,9 @@ int Element_STKM::update(UPDATE_FUNC_ARGS)
//#TPT-Directive ElementHeader Element_STKM static int graphics(GRAPHICS_FUNC_ARGS)
int Element_STKM::graphics(GRAPHICS_FUNC_ARGS)
-
{
+ *colr = *colg = *colb = *cola = 0;
*pixel_mode = PSPEC_STICKMAN;
- /*if ((int)sim->player.elem<PT_NUM)
- {
- *colr = PIXR(elements[sim->player.elem].pcolors);
- *colg = PIXG(elements[sim->player.elem].pcolors);
- *colb = PIXB(elements[sim->player.elem].pcolors);
- }
- else*/
- {
- *colr = *colg = *colb = 255;
- }
return 1;
}