Moved the snapToBase() utility function to region.*pp

I've also adjusted the TODO file, which really shouldn't be committed.
Still, it's there now, so it stays. I don't think the logger is going to
be possible any time soon, so I'll probably look into the disconnection
handler.
This commit is contained in:
Kayne Ruse
2014-08-24 13:23:50 +10:00
parent af8e7b70a0
commit 4ed512e0e2
9 changed files with 9 additions and 31 deletions
+3
View File
@@ -33,6 +33,9 @@ constexpr int REGION_DEPTH = 3;
//the size of the solid map
constexpr int REGION_SOLID_FOOTPRINT = ceil(REGION_WIDTH * REGION_HEIGHT / 8.0);
//utility function
int snapToBase(int base, int x);
class Region {
public:
typedef unsigned char type_t;