diff options
| author | Simon <simon@hardwired.org.uk> | 2010-12-19 18:39:39 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2010-12-19 18:39:39 (GMT) |
| commit | 314e937ec864e7481d0c1e07f027d8221f607180 (patch) | |
| tree | 93a410da6c0b73df159b09f1de5be694fc5a842e | |
| parent | e380237cbc87ed97b16955b40807b0f2427818e9 (diff) | |
| download | powder-314e937ec864e7481d0c1e07f027d8221f607180.zip powder-314e937ec864e7481d0c1e07f027d8221f607180.tar.gz | |
Allow building with Visual Studio, at the loss of some functionality, also, updates to version number
| -rw-r--r-- | includes/defines.h | 6 | ||||
| -rw-r--r-- | src/powder.c | 3 |
2 files changed, 6 insertions, 3 deletions
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) |
