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 | d3144b6f04213319bd76db387ba43c6dd7ce6967 (patch) | |
tree | f69215ca7fcf8c6741e37e05e4a9c67f0e8e201a /src/unmovable_cmd.cpp | |
parent | ac74654d8fcc26b85741179c0ad34725f1a82d89 (diff) | |
download | openttd-d3144b6f04213319bd76db387ba43c6dd7ce6967.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/unmovable_cmd.cpp')
-rw-r--r-- | src/unmovable_cmd.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index 063df456a..e2efec469 100644 --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -355,9 +355,12 @@ static TrackStatus GetTileTrackStatus_Unmovable(TileIndex tile, TransportType mo return 0; } -static void ClickTile_Unmovable(TileIndex tile) +static bool ClickTile_Unmovable(TileIndex tile) { - if (IsCompanyHQ(tile)) ShowCompany(GetTileOwner(tile)); + if (!IsCompanyHQ(tile)) return false; + + ShowCompany(GetTileOwner(tile)); + return true; } |