summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorJacob1 <jfu614@gmail.com>2012-03-14 23:20:27 (GMT)
committer Jacob1 <jfu614@gmail.com>2012-03-14 23:20:27 (GMT)
commitdc688470a656c70757581e932eda7e0ea69f85bb (patch)
treed4d567977016f9dc540142410850f6bc5bd35998 /src/graphics.c
parentd74e2810034e63e221d667c22b49772ab1a3af22 (diff)
downloadpowder-dc688470a656c70757581e932eda7e0ea69f85bb.zip
powder-dc688470a656c70757581e932eda7e0ea69f85bb.tar.gz
soap lines, create_parts fix, compiling fixes
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 7a510a9..754b8de 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -887,11 +887,7 @@ inline int drawchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a)
return x + w;
}
-#if defined(WIN32) && !defined(__GNUC__)
-_inline int addchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a)
-#else
-inline int addchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a)
-#endif
+int addchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a)
{
int i, j, w, bn = 0, ba = 0;
char *rp = font_data + font_ptrs[c];
@@ -1934,6 +1930,11 @@ void render_parts(pixel *vid)
#endif
//Pixel rendering
+ if (t==PT_SOAP)
+ {
+ if ((parts[i].ctype&7) == 7)
+ draw_line(vid, nx, ny, (int)(parts[parts[i].tmp].x+0.5f), (int)(parts[parts[i].tmp].y+0.5f), 245, 245, 220, XRES+BARSIZE);
+ }
if(pixel_mode & PSPEC_STICKMAN)
{
char buff[20]; //Buffer for HP