From: Christian Heller Date: Thu, 17 Apr 2014 00:23:51 +0000 (+0200) Subject: Client: Fix bug that made horizontal scrolling jump back on large maps. X-Git-Tag: tce~755 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/move_up?a=commitdiff_plain;h=317d623e0f3bdb5407a50d635861cb0eb244dd2f;p=plomrogue Client: Fix bug that made horizontal scrolling jump back on large maps. --- 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,