Patched bug #45 without resolving it

This commit is contained in:
Kayne Ruse
2015-04-28 06:00:21 +10:00
parent 878d502b8b
commit 5c404c572e
5 changed files with 30 additions and 16 deletions
+1 -4
View File
@@ -70,11 +70,8 @@ Region* RegionPagerBase::FindRegion(int x, int y) {
}
Region* RegionPagerBase::PushRegion(Region* const ptr) {
//BUG: Lists seem to not work properly
//BUG: #45 Some regions are occasionally losing their tile data
regionList.push_front(*ptr);
// if (debugRegionSum(&regionList.front()) == 0) {
// throw(std::runtime_error("Checksum fail; RegionPagerBase::PushRegion()"));
// }
return &regionList.front();
}