(svn r4940) Remove the dubious feature of remembering the last built depot. It serves no real purpose except causing confusion

This commit is contained in:
tron
2006-05-21 13:51:36 +00:00
parent de18908057
commit 3282efda88
11 changed files with 13 additions and 102 deletions

View File

@@ -1494,26 +1494,11 @@ static void PlayerTrainsWndProc(Window *w, WindowEvent *e)
}
} break;
case 9: { /* Build new Vehicle */
TileIndex tile;
if (!IsWindowOfPrototype(w, _player_trains_widgets))
break;
tile = _last_built_train_depot_tile;
do {
if (IsTileDepotType(tile, TRANSPORT_RAIL) &&
IsTileOwner(tile, _local_player)) {
ShowTrainDepotWindow(tile);
ShowBuildTrainWindow(tile);
return;
}
tile = TILE_MASK(tile + 1);
} while (tile != _last_built_train_depot_tile);
case 9: /* Build new Vehicle */
if (!IsWindowOfPrototype(w, _player_trains_widgets)) break;
ShowBuildTrainWindow(0);
} break;
break;
case 10: {
if (!IsWindowOfPrototype(w, _player_trains_widgets))
break;