summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-11-04 21:33:44 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-11-04 21:33:44 (GMT)
commitb71214b8cf95fac22d61316c4e080a3e03145f0c (patch)
tree2f29e1bd49a91fee7a4e6981cf4dc357cdc82c26 /src/graphics.c
parent6615fbca035397a41f09841858c6c2458a9cbdf9 (diff)
downloadpowder-b71214b8cf95fac22d61316c4e080a3e03145f0c.zip
powder-b71214b8cf95fac22d61316c4e080a3e03145f0c.tar.gz
MSVC compatibility
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 2409b98..3c988f5 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1846,7 +1846,10 @@ void render_parts(pixel *vid)
//Pixel rendering
if(pixel_mode & PSPEC_STICKMAN)
{
- //Special case for stickman
+ char buff[20]; //Buffer for HP
+ int s;
+ int legr, legg, legb;
+ pixel pc;
playerst *cplayer;
if(t==PT_STKM)
cplayer = &player;
@@ -1892,10 +1895,6 @@ void render_parts(pixel *vid)
glEnd();
glDisable(GL_LINE_SMOOTH);
#else
- char buff[20]; //Buffer for HP
- int s;
- int legr, legg, legb;
- pixel pc;
if (mousex>(nx-3) && mousex<(nx+3) && mousey<(ny+3) && mousey>(ny-3)) //If mous is in the head
{