(svn r6359) -Fix: Do not reset the current cursor action when centering on a depot/hangar (noticed by Neonox)

pull/155/head
tron 18 years ago
parent 3011abf238
commit 69ee8a6840

@ -833,10 +833,7 @@ static void AircraftDepotWndProc(Window *w, WindowEvent *e)
} }
break; break;
case 9: /* scroll to tile */ case 9: ScrollMainWindowToTile(w->window_number); break;
ResetObjectToPlace();
ScrollMainWindowToTile(w->window_number);
break;
} }
break; break;

@ -782,10 +782,7 @@ static void RoadDepotWndProc(Window *w, WindowEvent *e)
} }
break; break;
case 9: /* scroll to tile */ case 9: ScrollMainWindowToTile(w->window_number); break;
ResetObjectToPlace();
ScrollMainWindowToTile(w->window_number);
break;
} }
} break; } break;

@ -773,10 +773,7 @@ static void ShipDepotWndProc(Window *w, WindowEvent *e)
} }
break; break;
case 9: /* scroll to tile */ case 9: ScrollMainWindowToTile(w->window_number); break;
ResetObjectToPlace();
ScrollMainWindowToTile(w->window_number);
break;
} }
break; break;

@ -658,10 +658,9 @@ static void TrainDepotWndProc(Window *w, WindowEvent *e)
ResetObjectToPlace(); ResetObjectToPlace();
ShowBuildTrainWindow(w->window_number); ShowBuildTrainWindow(w->window_number);
break; break;
case 10:
ResetObjectToPlace(); case 10: ScrollMainWindowToTile(w->window_number); break;
ScrollMainWindowToTile(w->window_number);
break;
case 6: case 6:
TrainDepotClickTrain(w, e->click.pt.x, e->click.pt.y); TrainDepotClickTrain(w, e->click.pt.x, e->click.pt.y);
break; break;

Loading…
Cancel
Save