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
-13
View File
@@ -23,19 +23,6 @@
#include <algorithm>
int snapToBase(int base, int x) {
//snap to a grid
if (x < 0) {
++x;
return x / base * base - base;
}
return x / base * base;
}
double snapToBase(double base, double x) {
return floor(x / base) * base;
}
std::string truncatePath(std::string pathname) {
return std::string(
std::find_if(