(svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo)

This commit is contained in:
rubidium
2009-01-02 22:42:05 +00:00
parent 2086fbcf17
commit 1357b0a4c2
20 changed files with 59 additions and 31 deletions

View File

@@ -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 */