Tested RegionPager, removed trace statements, fixed logic errors
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user