X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;ds=sidebyside;f=roguelike-client;h=bc8b2f524da56bfcaae70948e11065775be458ec;hb=45f5aed9ded519f5ace770820c2aa84f5c736b8c;hp=040a2d24f3f8e3d09cebeb3a10055d52088d637b;hpb=a50806df8116a81729220bd79870639b18da9d8c;p=plomrogue diff --git a/roguelike-client b/roguelike-client index 040a2d2..bc8b2f5 100755 --- a/roguelike-client +++ b/roguelike-client @@ -338,7 +338,8 @@ def win_map(): win_size = next(win["size"] for win in windows if win["func"] == win_map) offset = [0, 0] for i in range(2): - if world_data["map_center"][i] * (i + 1) > win_size[i] / 2: + if world_data["map_center"][i] * (i + 1) > win_size[i] / 2 and \ + win_size[i] < world_data["map_size"] * (i + 1): if world_data["map_center"][i] * (i + 1) \ < world_data["map_size"] * (i + 1) - win_size[i] / 2: offset[i] = world_data["map_center"][i] * (i + 1) \