diff -r 492ca84ecc6c -r 1b6f956d8ac5 ship_gui.c --- a/ship_gui.c Mon Jan 10 14:43:00 2005 +0000 +++ b/ship_gui.c Mon Jan 10 14:56:26 2005 +0000 @@ -684,7 +684,7 @@ xt = x / 90; xm = x % 90; - if (xt >= 5) + if (xt >= w->hscroll.cap) return 1; row = (y - 14) / 24; @@ -692,7 +692,7 @@ if (row >= w->vscroll.cap) return 1; - pos = (row + w->vscroll.pos) * 3 + xt; + pos = (row + w->vscroll.pos) * w->hscroll.cap + xt; tile = w->window_number; FOR_ALL_VEHICLES(v) {