From 317d623e0f3bdb5407a50d635861cb0eb244dd2f Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 17 Apr 2014 02:23:51 +0200
Subject: [PATCH] Client: Fix bug that made horizontal scrolling jump back on
 large maps.

---
 TODO             | 2 --
 src/client/map.c | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/TODO b/TODO
index c3c5b5f..5438e49 100644
--- a/TODO
+++ b/TODO
@@ -25,5 +25,3 @@ CLIENT:
 - enable toggling of window borders
 
 - make log scrollable
-
-- fix buggy scrollling of large maps
diff --git a/src/client/map.c b/src/client/map.c
index 48a9b58..2e3c12d 100644
--- a/src/client/map.c
+++ b/src/client/map.c
@@ -10,7 +10,7 @@
 extern void map_scroll(char d)
 {
     struct Win * win = get_win_by_id('m');
-    uint8_t offset;
+    uint16_t offset;
     if (('8' == d || '2' == d) && world.map.size.y > win->frame_size.y)
     {
         offset = center_offset(win->center.y,
-- 
2.30.2