diff options
author | tron <tron@openttd.org> | 2006-09-03 19:09:17 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-09-03 19:09:17 +0000 |
commit | cd5c6df5f7bcca2e6dd00f65835d3afff4e8b40b (patch) | |
tree | e5f09a5b471a54e0ea87a41cdc720b7e6757f324 /train_gui.c | |
parent | 0ac4a9ac9841831e70df9b823a4b687ee5e61093 (diff) | |
download | openttd-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 'train_gui.c')
-rw-r--r-- | train_gui.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/train_gui.c b/train_gui.c index 62d720a21..6527570f9 100644 --- a/train_gui.c +++ b/train_gui.c @@ -658,10 +658,9 @@ static void TrainDepotWndProc(Window *w, WindowEvent *e) ResetObjectToPlace(); ShowBuildTrainWindow(w->window_number); break; - case 10: - ResetObjectToPlace(); - ScrollMainWindowToTile(w->window_number); - break; + + case 10: ScrollMainWindowToTile(w->window_number); break; + case 6: TrainDepotClickTrain(w, e->click.pt.x, e->click.pt.y); break; |