Remove debugging messages
This commit is contained in:
parent
37b5ba162c
commit
72cb273849
1 changed files with 0 additions and 4 deletions
4
maps.py
4
maps.py
|
|
@ -223,14 +223,12 @@ class ChunkMap():
|
||||||
winy, winx = self.win.getmaxyx()
|
winy, winx = self.win.getmaxyx()
|
||||||
if winx != 2*sizex + 4 or winy != sizey + 3:
|
if winx != 2*sizex + 4 or winy != sizey + 3:
|
||||||
self.win.resize(sizey + 3, 2*sizex + 4)
|
self.win.resize(sizey + 3, 2*sizex + 4)
|
||||||
sys.stderr.write("{}\n".format(self.win.getmaxyx()))
|
|
||||||
|
|
||||||
def draw(self):
|
def draw(self):
|
||||||
with self.chunkpool as pool:
|
with self.chunkpool as pool:
|
||||||
minx, maxx, miny, maxy = self.get_min_max(pool)
|
minx, maxx, miny, maxy = self.get_min_max(pool)
|
||||||
sizex = maxx - minx
|
sizex = maxx - minx
|
||||||
sizey = maxy - miny
|
sizey = maxy - miny
|
||||||
sys.stderr.write("{} {} {} {} | {} {}\n".format(minx, maxx, miny, maxy, sizex, sizey))
|
|
||||||
self.update_size(sizex, sizey)
|
self.update_size(sizex, sizey)
|
||||||
|
|
||||||
self.win.erase()
|
self.win.erase()
|
||||||
|
|
@ -238,8 +236,6 @@ class ChunkMap():
|
||||||
|
|
||||||
for pos, chunk in pool._chunks.items():
|
for pos, chunk in pool._chunks.items():
|
||||||
tp = self.type_of(pos, chunk)
|
tp = self.type_of(pos, chunk)
|
||||||
sys.stderr.write(tp + "\n")
|
|
||||||
sys.stderr.write("{} {}\n".format(pos.x - minx + 1, pos.y - miny + 1))
|
|
||||||
if curses.has_colors():
|
if curses.has_colors():
|
||||||
self.win.addstr(
|
self.win.addstr(
|
||||||
pos.y - miny + 1,
|
pos.y - miny + 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue