summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-06-09 18:46:41 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-06-11 12:00:42 (GMT)
commit93316a9f1d687a86558daef529d583f5ae2be992 (patch)
treeae98719e4fe31f5a06a30a54208ce85ec200b5ae /includes
parent7ae52660f58188a1bc9d8e69ff2711c6737c7e66 (diff)
downloadpowder-93316a9f1d687a86558daef529d583f5ae2be992.zip
powder-93316a9f1d687a86558daef529d583f5ae2be992.tar.gz
Fix a load of memory leaks
Also fix some compiler warnings (missing headers, wrong pointer type for modf, etc) and move variable declarations for Visual Studio.
Diffstat (limited to 'includes')
-rw-r--r--includes/powder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/powder.h b/includes/powder.h
index 86b0967..f86f6c1 100644
--- a/includes/powder.h
+++ b/includes/powder.h
@@ -836,7 +836,7 @@ static wall_type wtypes[] =
{PIXPACK(0xFFEE00), PIXPACK(0xAA9900), 4, "Gravity wall"},
};
-#define CHANNELS ((int)(MAX_TEMP-73.15f)/100+2)
+#define CHANNELS ((int)(MAX_TEMP-73)/100+2)
particle portalp[CHANNELS][8][80];
const particle emptyparticle;
int wireless[CHANNELS][2];