mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 02:40:47 +02:00
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:
committed by
Simon Robertshaw
parent
7ae52660f5
commit
93316a9f1d
@@ -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];
|
||||
|
Reference in New Issue
Block a user