home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
362ee86
)
Fix map scrolling bug in client.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 25 Jan 2019 01:15:46 +0000
(
02:15
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 25 Jan 2019 01:15:46 +0000
(
02:15
+0100)
client-curses.py
patch
|
blob
|
history
diff --git
a/client-curses.py
b/client-curses.py
index e942dd8fbc349b0e6571e97cad9995c8ba87327f..28d912d00b0c6fe9f183835cf3daf22af186507e 100755
(executable)
--- 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]