[Fix] resedit: Deprecated warnings.
This commit is contained in:
parent
401cedeb43
commit
d6fda87c30
@ -279,17 +279,17 @@ class space:
|
||||
area.window.draw_rectangle(gc, False, 0, 0, ww-1, wh-1)
|
||||
|
||||
for sys_name, system in self.systems.items():
|
||||
sx = float(system["pos"]["x"])
|
||||
sy = -float(system["pos"]["y"])
|
||||
dx = cx+sx*self.zoom
|
||||
dy = cy+sy*self.zoom
|
||||
sx = int(system["pos"]["x"])
|
||||
sy = -int(system["pos"]["y"])
|
||||
dx = int(cx+sx*self.zoom)
|
||||
dy = int(cy+sy*self.zoom)
|
||||
|
||||
# Draw jumps.
|
||||
for jump in system["jumps"]:
|
||||
jsx = float(self.systems[jump]["pos"]["x"])
|
||||
jsy = -float(self.systems[jump]["pos"]["y"])
|
||||
jdx = cx+jsx*self.zoom
|
||||
jdy = cy+jsy*self.zoom
|
||||
jsx = int(self.systems[jump]["pos"]["x"])
|
||||
jsy = -int(self.systems[jump]["pos"]["y"])
|
||||
jdx = int(cx+jsx*self.zoom)
|
||||
jdy = int(cy+jsy*self.zoom)
|
||||
|
||||
area.window.draw_line(gc, dx, dy, jdx, jdy)
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user