mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 05:30:23 +02:00
Fixes for stick mans in heat mode.
This commit is contained in:
@@ -1870,6 +1870,7 @@ void render_parts(pixel *vid)
|
|||||||
#else
|
#else
|
||||||
char buff[20]; //Buffer for HP
|
char buff[20]; //Buffer for HP
|
||||||
int s;
|
int s;
|
||||||
|
int legr, legg, legb;
|
||||||
pixel pc;
|
pixel pc;
|
||||||
|
|
||||||
if (mousex>(nx-3) && mousex<(nx+3) && mousey<(ny+3) && mousey>(ny-3)) //If mous is in the head
|
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;
|
if (cplayer->elem<PT_NUM) pc = ptypes[cplayer->elem].pcolors;
|
||||||
else pc = PIXPACK(0x8080FF);
|
else pc = PIXPACK(0x8080FF);
|
||||||
s = XRES+BARSIZE;
|
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
|
//head
|
||||||
if(t==PT_FIGH)
|
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);
|
draw_line(vid , nx+2, ny-2, nx+2, ny+2, PIXR(pc), PIXG(pc), PIXB(pc), s);
|
||||||
}
|
}
|
||||||
//legs
|
//legs
|
||||||
draw_line(vid , nx, ny+3, cplayer->legs[0], cplayer->legs[1], 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], 255, 255, 255, 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], 255, 255, 255, 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], 255, 255, 255, s);
|
draw_line(vid , cplayer->legs[8], cplayer->legs[9], cplayer->legs[12], cplayer->legs[13], legr, legg, legb, s);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if(pixel_mode & PMODE_FLAT)
|
if(pixel_mode & PMODE_FLAT)
|
||||||
|
Reference in New Issue
Block a user