Found the culprit for bug #45

This commit is contained in:
Kayne Ruse
2015-08-24 03:37:44 +10:00
parent 626435974e
commit 188a6805bf
4 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -29,12 +29,13 @@
//static functions
//-------------------------
//TODO: proper checksum
static int regionChecksum(Region* const region) {
int sum = 0;
for(int i = 0; i < REGION_WIDTH; i++) {
for (int j = 0; j < REGION_HEIGHT; j++) {
for (int k = 0; k < REGION_DEPTH; k++) {
sum += region->GetTile(i, j, k);
sum |= region->GetTile(i, j, k);
}
}
}