src/town_cmd.cpp
changeset 7226 3e15150d5a23
parent 7225 9d9a1e554903
child 7333 e48228e44be8
equal deleted inserted replaced
7225:9d9a1e554903 7226:3e15150d5a23
   667 			HASBIT(GetTownRoadMask(TILE_ADD(tile, dist_multi * (ToTileIndexDiff(_roadblock_tileadd[dir + 3]) + ToTileIndexDiff(_roadblock_tileadd[dir + 2])))), dir));
   667 			HASBIT(GetTownRoadMask(TILE_ADD(tile, dist_multi * (ToTileIndexDiff(_roadblock_tileadd[dir + 3]) + ToTileIndexDiff(_roadblock_tileadd[dir + 2])))), dir));
   668 }
   668 }
   669 
   669 
   670 static bool IsRoadAllowedHere(TileIndex tile, int dir)
   670 static bool IsRoadAllowedHere(TileIndex tile, int dir)
   671 {
   671 {
   672 	if (TileX(tile) < 1 || TileY(tile) < 1 || MapMaxX() <= TileX(tile) || MapMaxY() <= TileY(tile)) return false;
   672 	if (TileX(tile) < 2 || TileY(tile) < 2 || MapMaxX() <= TileX(tile) || MapMaxY() <= TileY(tile)) return false;
   673 
   673 
   674 	Slope k;
   674 	Slope k;
   675 	Slope slope;
   675 	Slope slope;
   676 
   676 
   677 	/* If this assertion fails, it might be because the world contains
   677 	/* If this assertion fails, it might be because the world contains