Tested RegionPager, removed trace statements, fixed logic errors

This commit is contained in:
Kayne Ruse
2014-03-01 00:39:39 +11:00
parent 4629b7302b
commit dc8f594eec
7 changed files with 14 additions and 28 deletions
+2 -2
View File
@@ -27,9 +27,9 @@ int snapToBase(int base, int x) {
//snap to a grid
if (x < 0) {
x++;
return x - x % base - base;
return x / base * base - base;
}
return x - x % base;
return x / base * base;
}
std::string truncatePath(std::string pathname) {