mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-11 19:04:05 +02:00
Now stickmen and fighters show HP. Closes #93
This commit is contained in:
committed by
Simon Robertshaw
parent
ae469e8e02
commit
e6feb6f101
@@ -1186,7 +1186,7 @@ void Renderer::render_parts()
|
|||||||
}
|
}
|
||||||
if(pixel_mode & PSPEC_STICKMAN)
|
if(pixel_mode & PSPEC_STICKMAN)
|
||||||
{
|
{
|
||||||
char buff[20]; //Buffer for HP
|
char buff[4]; //Buffer for HP
|
||||||
int s;
|
int s;
|
||||||
int legr, legg, legb;
|
int legr, legg, legb;
|
||||||
playerst *cplayer;
|
playerst *cplayer;
|
||||||
@@ -1199,11 +1199,11 @@ void Renderer::render_parts()
|
|||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* if (mousex>(nx-3) && mousex<(nx+3) && mousey<(ny+3) && mousey>(ny-3)) //If mous is in the head
|
if (mousePosX>(nx-3) && mousePosX<(nx+3) && mousePosY<(ny+3) && mousePosY>(ny-3)) //If mouse is in the head
|
||||||
{
|
{
|
||||||
sprintf(buff, "%3d", sim->parts[i].life); //Show HP
|
sprintf(buff, "%3d", sim->parts[i].life); //Show HP
|
||||||
drawtext(mousex-8-2*(sim->parts[i].life<100)-2*(sim->parts[i].life<10), mousey-12, buff, 255, 255, 255, 255);
|
drawtext(mousePosX-8-2*(sim->parts[i].life<100)-2*(sim->parts[i].life<10), mousePosY-12, buff, 255, 255, 255, 255);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
if (colour_mode!=COLOUR_HEAT)
|
if (colour_mode!=COLOUR_HEAT)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user