diff options
Diffstat (limited to 'src/tilehighlight_func.h')
-rw-r--r-- | src/tilehighlight_func.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tilehighlight_func.h b/src/tilehighlight_func.h index 3edef509a..a17571fe3 100644 --- a/src/tilehighlight_func.h +++ b/src/tilehighlight_func.h @@ -14,6 +14,7 @@ #include "gfx_type.h" #include "tilehighlight_type.h" +#include "track_type.h" void PlaceProc_DemolishArea(TileIndex tile); bool GUIPlaceProcDragXY(ViewportDragDropSelectionProcess proc, TileIndex start_tile, TileIndex end_tile); @@ -29,6 +30,13 @@ void VpSetPresizeRange(TileIndex from, TileIndex to); void VpSetPlaceSizingLimit(int limit); void UpdateTileSelection(); +void StoreRailPlacementEndpoints(TileIndex start_tile, TileIndex end_tile, Track start_track, bool bidirectional = true); + +/** Clear all rail track endpoints stored for highlighting purposes. @see StoreRailPlacementEndpoints */ +static inline void ClearRailPlacementEndpoints() +{ + StoreRailPlacementEndpoints(INVALID_TILE, INVALID_TILE, TRACK_BEGIN, false); +} extern TileHighlightData _thd; |