This hack for the collision map was a terrible idea

I'm committing these changes before undoing these, and coding it properly.
This commit is contained in:
Kayne Ruse
2014-07-01 22:04:45 +10:00
parent 8c9d071c7a
commit 8df1ecd804
8 changed files with 45 additions and 21 deletions
+3 -3
View File
@@ -22,8 +22,8 @@
#ifndef REGION_HPP_
#define REGION_HPP_
constexpr int REGION_WIDTH = 20;
constexpr int REGION_HEIGHT = 20;
constexpr int REGION_WIDTH = 21;
constexpr int REGION_HEIGHT = 21;
constexpr int REGION_DEPTH = 3;
class Region {
@@ -45,7 +45,7 @@ private:
const int x;
const int y;
type_t tiles[REGION_WIDTH][REGION_HEIGHT][REGION_DEPTH];
type_t tiles[REGION_WIDTH][REGION_HEIGHT][REGION_DEPTH+1];
};
#endif