From a054a784af54e2ca740d046f8bed7f52b71facee Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Thu, 16 Jun 2011 21:18:10 +0100 Subject: [PATCH] Fix soap stamp crashes, and fix stkm head colour --- src/graphics.c | 22 ++++++++++++++-------- src/main.c | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/graphics.c b/src/graphics.c index 47bceceea..1c40a0e40 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -1651,6 +1651,7 @@ void draw_parts(pixel *vid) if (t==PT_STKM) //Just draw head here { char buff[10]; //Buffer for HP + pixel pc; if (mousex>(nx-3) && mousex<(nx+3) && mousey<(ny+3) && mousey>(ny-3)) //If mous is in the head { @@ -1658,13 +1659,15 @@ void draw_parts(pixel *vid) drawtext(vid, mousex-8-2*(parts[i].life<100)-2*(parts[i].life<10), mousey-12, buff, 255, 255, 255, 255); } + if ((int)player[2](nx-3) && mousex<(nx+3) && mousey<(ny+3) && mousey>(ny-3)) //If mous is in the head { @@ -1683,13 +1687,15 @@ void draw_parts(pixel *vid) drawtext(vid, mousex-8-2*(parts[i].life<100)-2*(parts[i].life<10), mousey-12, buff, 255, 255, 255, 255); } + if ((int)player2[2]