summaryrefslogtreecommitdiff
path: root/graphics.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-09-05 10:35:38 (GMT)
committer Simon <simon@hardwired.org.uk>2010-09-05 10:35:38 (GMT)
commit240eb4ba33f8720de6d2a40fd0302ad5f927dc79 (patch)
treede2ed384f0b3e77bf200fd66ad3c4de972641576 /graphics.c
parent21863c088b5f4c266e33b41813ec697a7d3fa46d (diff)
downloadpowder-240eb4ba33f8720de6d2a40fd0302ad5f927dc79.zip
powder-240eb4ba33f8720de6d2a40fd0302ad5f927dc79.tar.gz
Stickman fixes from savask and temperature fixes
Diffstat (limited to 'graphics.c')
-rw-r--r--graphics.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics.c b/graphics.c
index 7b96720..2cb1a26 100644
--- a/graphics.c
+++ b/graphics.c
@@ -1191,7 +1191,7 @@ void draw_parts(pixel *vid)
if(mousex>(nx-3) && mousex<(nx+3) && mousey<(ny+3) && mousey>(ny-3)) //If mous is in the head
{
- sprintf(buff, "%3d", (int)parts[i].life); //Show HP
+ sprintf(buff, "%3d", parts[i].life); //Show HP
drawtext(vid, mousex-8-2*(parts[i].life<100)-2*(parts[i].life<10), mousey-12, buff, 255, 255, 255, 255);
}
@@ -1796,7 +1796,7 @@ void draw_parts(pixel *vid)
if(mousex>(nx-3) && mousex<(nx+3) && mousey<(ny+3) && mousey>(ny-3)) //If mous is in the head
{
- sprintf(buff, "%3d", (int)parts[i].life); //Show HP
+ sprintf(buff, "%3d", parts[i].life); //Show HP
drawtext(vid, mousex-8-2*(parts[i].life<100)-2*(parts[i].life<10), mousey-12, buff, 255, 255, 255, 255);
}
@@ -1812,6 +1812,8 @@ void draw_parts(pixel *vid)
draw_line(vid , player[3], player[4], player[7], player[8], R, G, B, s);
draw_line(vid , nx, ny+3, player[11], player[12], R, G, B, s);
draw_line(vid , player[11], player[12], player[15], player[16], R, G, B, s);
+
+ isplayer = 1; //It's a secret. Tssss...
}
else
{