summaryrefslogtreecommitdiff
path: root/ship_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-09-03 19:09:17 +0000
committertron <tron@openttd.org>2006-09-03 19:09:17 +0000
commitcd5c6df5f7bcca2e6dd00f65835d3afff4e8b40b (patch)
treee5f09a5b471a54e0ea87a41cdc720b7e6757f324 /ship_gui.c
parent0ac4a9ac9841831e70df9b823a4b687ee5e61093 (diff)
downloadopenttd-cd5c6df5f7bcca2e6dd00f65835d3afff4e8b40b.tar.xz
(svn r6359) -Fix: Do not reset the current cursor action when centering on a depot/hangar (noticed by Neonox)
Diffstat (limited to 'ship_gui.c')
-rw-r--r--ship_gui.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ship_gui.c b/ship_gui.c
index 5ac87ffb4..39d40b5e4 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -773,10 +773,7 @@ static void ShipDepotWndProc(Window *w, WindowEvent *e)
}
break;
- case 9: /* scroll to tile */
- ResetObjectToPlace();
- ScrollMainWindowToTile(w->window_number);
- break;
+ case 9: ScrollMainWindowToTile(w->window_number); break;
}
break;