added warning for extremely absurd region files
This commit is contained in:
@@ -587,7 +587,6 @@ class TileSet(object):
|
|||||||
self.xradius = xradius
|
self.xradius = xradius
|
||||||
self.yradius = yradius
|
self.yradius = yradius
|
||||||
|
|
||||||
|
|
||||||
def _rearrange_tiles(self):
|
def _rearrange_tiles(self):
|
||||||
"""If the target size of the tree is not the same as the existing size
|
"""If the target size of the tree is not the same as the existing size
|
||||||
on disk, do some re-arranging
|
on disk, do some re-arranging
|
||||||
|
|||||||
@@ -484,6 +484,8 @@ class RegionSet(object):
|
|||||||
p = f.split(".")
|
p = f.split(".")
|
||||||
x = int(p[1])
|
x = int(p[1])
|
||||||
y = int(p[2])
|
y = int(p[2])
|
||||||
|
if x > 10000 or y > 10000:
|
||||||
|
logging.warning("Holy shit what is up with region file %s !?" % f)
|
||||||
yield (x, y, path)
|
yield (x, y, path)
|
||||||
|
|
||||||
class RegionSetWrapper(object):
|
class RegionSetWrapper(object):
|
||||||
|
|||||||
Reference in New Issue
Block a user