home · contact · privacy
Fix map scrolling bug in client.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 25 Jan 2019 01:15:46 +0000 (02:15 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 25 Jan 2019 01:15:46 +0000 (02:15 +0100)
client-curses.py

index e942dd8fbc349b0e6571e97cad9995c8ba87327f..28d912d00b0c6fe9f183835cf3daf22af186507e 100755 (executable)
@@ -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]