fix typo (max instead of min) in MapHistory.add_new()
This commit is contained in:
parent
1db9db542f
commit
bdbbaa71a1
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ class MapHistory:
|
|||
else:
|
||||
height, width = data.shape
|
||||
minx, miny = max(minx, self.x), max(miny, self.y)
|
||||
maxx, maxy = min(maxx, self.x+width), max(maxy, self.y+height)
|
||||
maxx, maxy = min(maxx, self.x+width), min(maxy, self.y+height)
|
||||
|
||||
new_val = len(self.updates) if direct else 1
|
||||
for iy, y in enumerate(range(miny*res, maxy*res, res), start=miny-self.y):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue