0

changed "go" methods in world and quadtree to something more descriptive

This commit is contained in:
Andrew Brown
2011-11-01 11:32:28 -04:00
parent 996b299c79
commit 96cf62bd14
3 changed files with 14 additions and 10 deletions

View File

@@ -298,10 +298,11 @@ class World(object):
msg="Spawn", type="spawn", chunk=(chunkX, chunkY)))
self.spawn = (disp_spawnX, spawnY, disp_spawnZ)
def go(self, procs):
def determine_bounds(self):
"""Scan the world directory, to fill in
self.{min,max}{col,row} for use later in quadtree.py. This
also does other world-level processing."""
self.{min,max}{col,row} for use later in quadtree.py.
"""
logging.info("Scanning chunks")
# find the dimensions of the map, in region files
@@ -340,8 +341,6 @@ class World(object):
self.minrow = minrow
self.maxrow = maxrow
self.find_true_spawn()
def _get_north_rotations(self):
if self.north_direction == 'upper-left':
return 1