summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-08-08 16:49:52 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2012-08-09 21:47:24 (GMT)
commit62224ad13f6a15c5faa78f505ae4ad56cf6f78fe (patch)
treed74d511e4b991169555acd2097f63410836c6559 /src/graphics.c
parent7fdd2e89c8284fc68a28bbcf7cf988b5ac6bcc4b (diff)
downloadpowder-62224ad13f6a15c5faa78f505ae4ad56cf6f78fe.zip
powder-62224ad13f6a15c5faa78f505ae4ad56cf6f78fe.tar.gz
Give menu color to elements without one (stickmen, TRON, and WARP) The color is ignored, so they still look the same
(amended to remove "*pixel_mode &= ~PMODE;", since *pixel_mode is set to PSPEC_STICKMAN immediately afterwards)
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 765306b..252033f 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -2044,7 +2044,7 @@ void render_parts(pixel *vid)
else
continue;
- 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 mouse is in the head
{
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);