(svn r6359) -Fix: Do not reset the current cursor action when centering on a depot/hangar (noticed by Neonox)
authortron
Sun, 03 Sep 2006 19:09:17 +0000
changeset 4532 381c1bfa450d
parent 4531 031644b598ca
child 4533 45eec0a20138
(svn r6359) -Fix: Do not reset the current cursor action when centering on a depot/hangar (noticed by Neonox)
aircraft_gui.c
roadveh_gui.c
ship_gui.c
train_gui.c
--- a/aircraft_gui.c	Sun Sep 03 16:02:15 2006 +0000
+++ b/aircraft_gui.c	Sun Sep 03 19:09:17 2006 +0000
@@ -833,10 +833,7 @@
 				}
 				break;
 
-			case 9: /* scroll to tile */
-				ResetObjectToPlace();
-				ScrollMainWindowToTile(w->window_number);
-				break;
+			case 9: ScrollMainWindowToTile(w->window_number); break;
 		}
 		break;
 
--- a/roadveh_gui.c	Sun Sep 03 16:02:15 2006 +0000
+++ b/roadveh_gui.c	Sun Sep 03 19:09:17 2006 +0000
@@ -782,10 +782,7 @@
 				}
 					break;
 
-			case 9: /* scroll to tile */
-				ResetObjectToPlace();
-				ScrollMainWindowToTile(w->window_number);
-					break;
+			case 9: ScrollMainWindowToTile(w->window_number); break;
 		}
 	} break;
 
--- a/ship_gui.c	Sun Sep 03 16:02:15 2006 +0000
+++ b/ship_gui.c	Sun Sep 03 19:09:17 2006 +0000
@@ -773,10 +773,7 @@
 				}
 					break;
 
-		case 9: /* scroll to tile */
-			ResetObjectToPlace();
-			ScrollMainWindowToTile(w->window_number);
-			break;
+			case 9: ScrollMainWindowToTile(w->window_number); break;
 		}
 		break;
 
--- a/train_gui.c	Sun Sep 03 16:02:15 2006 +0000
+++ b/train_gui.c	Sun Sep 03 19:09:17 2006 +0000
@@ -658,10 +658,9 @@
 			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;