diff options
author | rubidium <rubidium@openttd.org> | 2009-01-02 22:42:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-02 22:42:05 +0000 |
commit | 1357b0a4c2c9cb2cf6d81a2cbc3e851d25c6c735 (patch) | |
tree | f69215ca7fcf8c6741e37e05e4a9c67f0e8e201a /src/road_cmd.cpp | |
parent | 2086fbcf174b20758cbd9ebb94b3985e2b25ee29 (diff) | |
download | openttd-1357b0a4c2c9cb2cf6d81a2cbc3e851d25c6c735.tar.xz |
(svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo)
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r-- | src/road_cmd.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index aae3f934f..cb4595bd6 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -1430,9 +1430,12 @@ static void TileLoop_Road(TileIndex tile) } } -static void ClickTile_Road(TileIndex tile) +static bool ClickTile_Road(TileIndex tile) { - if (IsRoadDepot(tile)) ShowDepotWindow(tile, VEH_ROAD); + if (!IsRoadDepot(tile)) return false; + + ShowDepotWindow(tile, VEH_ROAD); + return true; } /* Converts RoadBits to TrackBits */ |