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.
This commit is contained in:
jacksonmj
2011-06-09 19:46:41 +01:00
committed by Simon Robertshaw
parent 7ae52660f5
commit 93316a9f1d
10 changed files with 48 additions and 49 deletions

View File

@@ -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];