Apparently it was the #45 fix that broke collisions

This commit is contained in:
2016-03-22 00:47:38 +11:00
parent 30aa11c083
commit 12f86f22de
6 changed files with 21 additions and 12 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ bool Region::SetSolid(int x, int y, bool b) {
return solid[x * REGION_WIDTH + y] = b;
}
bool Region::GetSolid(int x, int y) {
bool Region::GetSolid(int x, int y) const {
if (x < 0 || y < 0 || x >= REGION_WIDTH || y >= REGION_HEIGHT) {
throw(std::out_of_range("Region::GetSolid() argument out of range"));
}