Permalink
Browse files

Workaround for broken chunk generation.

  • Loading branch information...
dfloer committed Nov 9, 2018
1 parent 4d2ee4f commit 9aa9c651579fd07e1f050feed462def697eb5cae
Showing with 3 additions and 0 deletions.
  1. +3 −0 cocos2d.py
@@ -117,6 +117,9 @@ def generate_chunk(self, center):
chunk = TerrainChunk(center, self.chunk_size)
self.chunk_list[center] = [k for k in chunk.chunk_cells.keys()]
for k, v in chunk.chunk_cells.items():
# Todo: this is a hack, figure out why overlapping chunks are ever generated.
if k in self.hexagon_map.keys():
continue
self.hexagon_map[k] = v
if k == Hexagon(0, 0, 0):
self.hexagon_map[center].terrain_type = 7

0 comments on commit 9aa9c65

Please sign in to comment.