no idea why, but some changes just popped out

--HG--
branch : novattd150
This commit is contained in:
Pavel Stupnikov
2015-03-17 16:27:00 +03:00
parent 6fed558921
commit 7c28ff384c
4 changed files with 44 additions and 52 deletions

View File

@@ -792,7 +792,7 @@ do_clear:;
* @param dir Direction that the road is following.
* @return True if the next tile at dir direction is suitable for being connected directly by a second roadbit at the end of the road being built.
*/
static bool CanConnectToRoad(TileIndex tile, RoadType rt, DiagDirection dir)
bool CanConnectToRoad(TileIndex tile, RoadType rt, DiagDirection dir)
{
RoadBits bits = GetAnyRoadBits(tile + TileOffsByDiagDir(dir), rt, false);
return (bits & DiagDirToRoadBits(ReverseDiagDir(dir))) != 0;