From 1357b0a4c2c9cb2cf6d81a2cbc3e851d25c6c735 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 2 Jan 2009 22:42:05 +0000 Subject: (svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo) --- src/unmovable_cmd.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/unmovable_cmd.cpp') 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; } -- cgit v1.2.3-54-g00ecf