* Scrolls the viewport of the main window to a given location. * @param tile Desired tile to center on. * @param instant Jump to the location instead of slowly moving to it. * @return Destination of the viewport was changed (to activate other actions when the viewport is already at the desired position). */
| 2590 | * @return Destination of the viewport was changed (to activate other actions when the viewport is already at the desired position). |
| 2591 | */ |
| 2592 | bool ScrollMainWindowToTile(TileIndex tile, bool instant) |
| 2593 | { |
| 2594 | return ScrollMainWindowTo(TileX(tile) * TILE_SIZE + TILE_SIZE / 2, TileY(tile) * TILE_SIZE + TILE_SIZE / 2, -1, instant); |
| 2595 | } |
| 2596 | |
| 2597 | /** |
| 2598 | * Set a tile to display a red error square. |
no test coverage detected