home · contact · privacy
Client: Fix bug that made horizontal scrolling jump back on large maps.
[plomrogue] / src / client / map.c
index 48a9b5830de67de3cb60342b8e85277fb6700726..2e3c12d1c34af34c8e8625caf0ee858baa495c85 100644 (file)
@@ -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,