From: Christian Heller Date: Fri, 25 Jan 2019 01:15:46 +0000 (+0100) Subject: Fix map scrolling bug in client. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks?a=commitdiff_plain;h=8c9d8857d363d9e3faf11eac9df2f96abab359aa;p=plomrogue2-experiments Fix map scrolling bug in client. --- diff --git a/client-curses.py b/client-curses.py index e942dd8..28d912d 100755 --- a/client-curses.py +++ b/client-curses.py @@ -13,7 +13,7 @@ class Map(game_common.Map): map_height = len(map_lines) if map_height > view_height and center_y > view_height / 2: if center_y > map_height - view_height / 2: - map_lines = map_lines[map_height - view_height:] + map_lines[:] = map_lines[map_height - view_height:] else: start = center_y - int(view_height / 2) map_lines[:] = map_lines[start:start + view_height]