From 314e937ec864e7481d0c1e07f027d8221f607180 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 19 Dec 2010 18:39:39 +0000 Subject: Allow building with Visual Studio, at the loss of some functionality, also, updates to version number diff --git a/includes/defines.h b/includes/defines.h index de04ea9..41a5baa 100644 --- a/includes/defines.h +++ b/includes/defines.h @@ -7,10 +7,10 @@ #define PATH_SEP "/" #endif -#define SAVE_VERSION 44 -#define MINOR_VERSION 7 +#define SAVE_VERSION 45 +#define MINOR_VERSION 0 #define IDENT_VERSION "G" //Change this if you're not Simon! It should be a single letter. -//#define BETA +#define BETA #define SERVER "powdertoy.co.uk" diff --git a/src/powder.c b/src/powder.c index 11e1b14..f881804 100644 --- a/src/powder.c +++ b/src/powder.c @@ -5482,6 +5482,8 @@ void update_particles(pixel *vid) void rotate_area(int area_x, int area_y, int area_w, int area_h, int invert) { + //TODO: MSCC doesn't like arrays who's size is determined at runtime. + #if !(defined(WIN32) && !defined(__GNUC__)) int cx = 0; int cy = 0; unsigned tpmap[area_h][area_w]; @@ -5544,6 +5546,7 @@ void rotate_area(int area_x, int area_y, int area_w, int area_h, int invert) } } } +#endif } void clear_area(int area_x, int area_y, int area_w, int area_h) -- cgit v0.9.2-21-gd62e