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/?p=plomrogue2-experiments;a=commitdiff_plain;h=8c9d8857d363d9e3faf11eac9df2f96abab359aa;hp=362ee8651a250d99377806c33451ceb5b027c606 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]