diff options
Diffstat (limited to 'src/viewport_func.h')
-rw-r--r-- | src/viewport_func.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/viewport_func.h b/src/viewport_func.h index dba28bb9e..7d86dda98 100644 --- a/src/viewport_func.h +++ b/src/viewport_func.h @@ -16,6 +16,7 @@ #include "viewport_type.h" #include "window_type.h" #include "tile_type.h" +#include "station_type.h" static const int TILE_HEIGHT_STEP = 50; ///< One Z unit tile height difference is displayed as 50m. @@ -67,6 +68,8 @@ void ViewportDoDraw(const ViewPort *vp, int left, int top, int right, int bottom bool ScrollWindowToTile(TileIndex tile, Window *w, bool instant = false); bool ScrollWindowTo(int x, int y, int z, Window *w, bool instant = false); +void RebuildViewportOverlay(Window *w); + bool ScrollMainWindowToTile(TileIndex tile, bool instant = false); bool ScrollMainWindowTo(int x, int y, int z = -1, bool instant = false); @@ -76,4 +79,6 @@ extern Point _tile_fract_coords; void MarkTileDirtyByTile(TileIndex tile); +Point GetViewportStationMiddle(const ViewPort *vp, const Station *st); + #endif /* VIEWPORT_FUNC_H */ |