summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsavask <savask@yandex.ru>2011-11-01 11:40:20 (GMT)
committer savask <savask@yandex.ru>2011-11-01 16:44:44 (GMT)
commit98e23875c83959957556a0859684b6770f76c996 (patch)
treef1317cb1a771a558c065ede4af2048fcacd96583 /src
parent9ac04e2c1894dd60232ed27216e4dd8f5cd055aa (diff)
downloadpowder-98e23875c83959957556a0859684b6770f76c996.zip
powder-98e23875c83959957556a0859684b6770f76c996.tar.gz
Fixes for stick mans in heat mode.
Diffstat (limited to 'src')
-rw-r--r--src/graphics.c32
1 files changed, 28 insertions, 4 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 15ba199..0ed664d 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1870,6 +1870,7 @@ void render_parts(pixel *vid)
#else
char buff[20]; //Buffer for HP
int s;
+ int legr, legg, legb;
pixel pc;
if (mousex>(nx-3) && mousex<(nx+3) && mousey<(ny+3) && mousey>(ny-3)) //If mous is in the head
@@ -1881,6 +1882,29 @@ void render_parts(pixel *vid)
if (cplayer->elem<PT_NUM) pc = ptypes[cplayer->elem].pcolors;
else pc = PIXPACK(0x8080FF);
s = XRES+BARSIZE;
+
+ if (t==PT_STKM2)
+ {
+ legr = 100;
+ legg = 100;
+ legb = 255;
+ }
+ else
+ {
+ legr = 255;
+ legg = 255;
+ legb = 255;
+ }
+
+ if (cmode == CM_HEAT)
+ {
+ pc = PIXRGB(colr, colg, colb);
+
+ legr = colr;
+ legg = colg;
+ legb = colb;
+ }
+
//head
if(t==PT_FIGH)
{
@@ -1897,10 +1921,10 @@ void render_parts(pixel *vid)
draw_line(vid , nx+2, ny-2, nx+2, ny+2, PIXR(pc), PIXG(pc), PIXB(pc), s);
}
//legs
- draw_line(vid , nx, ny+3, cplayer->legs[0], cplayer->legs[1], 255, 255, 255, s);
- draw_line(vid , cplayer->legs[0], cplayer->legs[1], cplayer->legs[4], cplayer->legs[5], 255, 255, 255, s);
- draw_line(vid , nx, ny+3, cplayer->legs[8], cplayer->legs[9], 255, 255, 255, s);
- draw_line(vid , cplayer->legs[8], cplayer->legs[9], cplayer->legs[12], cplayer->legs[13], 255, 255, 255, s);
+ draw_line(vid , nx, ny+3, cplayer->legs[0], cplayer->legs[1], legr, legg, legb, s);
+ draw_line(vid , cplayer->legs[0], cplayer->legs[1], cplayer->legs[4], cplayer->legs[5], legr, legg, legb, s);
+ draw_line(vid , nx, ny+3, cplayer->legs[8], cplayer->legs[9], legr, legg, legb, s);
+ draw_line(vid , cplayer->legs[8], cplayer->legs[9], cplayer->legs[12], cplayer->legs[13], legr, legg, legb, s);
#endif
}
if(pixel_mode & PMODE_FLAT)