diff options
| author | Simon 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) |
| commit | 2f76c2374d9d8da0b3ed512113a611c9af5653b5 (patch) | |
| tree | a760cab309c4c471a304305ed7852b1de1c15efd /src/simulation/elements/STKM2.cpp | |
| parent | ca7b02dbfdd0c11bc9e01b606797f5274f548c6c (diff) | |
| download | powder-2f76c2374d9d8da0b3ed512113a611c9af5653b5.zip powder-2f76c2374d9d8da0b3ed512113a611c9af5653b5.tar.gz | |
TPT: Give menu color to elements without one (stickmen, TRON, and WARP)
Diffstat (limited to 'src/simulation/elements/STKM2.cpp')
| -rw-r--r-- | src/simulation/elements/STKM2.cpp | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/src/simulation/elements/STKM2.cpp b/src/simulation/elements/STKM2.cpp index edcef18..a2c0073 100644 --- a/src/simulation/elements/STKM2.cpp +++ b/src/simulation/elements/STKM2.cpp @@ -4,7 +4,7 @@ Element_STKM2::Element_STKM2() { Identifier = "DEFAULT_PT_STKM2"; Name = "STK2"; - Colour = PIXPACK(0x000000); + Colour = PIXPACK(0x6464FF); MenuVisible = 1; MenuSection = SC_SPECIAL; Enabled = 1; @@ -43,7 +43,7 @@ Element_STKM2::Element_STKM2() HighTemperatureTransition = PT_FIRE; Update = &Element_STKM2::update; - Graphics = &Element_STKM2::graphics; + Graphics = &Element_STKM::graphics; } //#TPT-Directive ElementHeader Element_STKM2 static int update(UPDATE_FUNC_ARGS) @@ -53,25 +53,4 @@ int Element_STKM2::update(UPDATE_FUNC_ARGS) return 0; } - - -//#TPT-Directive ElementHeader Element_STKM2 static int graphics(GRAPHICS_FUNC_ARGS) -int Element_STKM2::graphics(GRAPHICS_FUNC_ARGS) - -{ - *pixel_mode = PSPEC_STICKMAN; - /*if ((int)sim->player2.elem<PT_NUM) - { - *colr = PIXR(elements[sim->player2.elem].pcolors); - *colg = PIXG(elements[sim->player2.elem].pcolors); - *colb = PIXB(elements[sim->player2.elem].pcolors); - } - else*/ - { - *colr = *colg = *colb = 255; - } - return 1; -} - - Element_STKM2::~Element_STKM2() {}
\ No newline at end of file |
