equal
deleted
inserted
replaced
139 * Counts the numbers of tiles matching a specific type in the area around |
139 * Counts the numbers of tiles matching a specific type in the area around |
140 * @param tile the center tile of the 'count area' |
140 * @param tile the center tile of the 'count area' |
141 * @param type the type of tile searched for |
141 * @param type the type of tile searched for |
142 * @param industry when type == MP_INDUSTRY, the type of the industry, |
142 * @param industry when type == MP_INDUSTRY, the type of the industry, |
143 * in all other cases this parameter is ignored |
143 * in all other cases this parameter is ignored |
144 * @result the noumber of matching tiles around |
144 * @return the result the noumber of matching tiles around |
145 */ |
145 */ |
146 static int CountMapSquareAround(TileIndex tile, TileType type, IndustryType industry) |
146 static int CountMapSquareAround(TileIndex tile, TileType type, IndustryType industry) |
147 { |
147 { |
148 int num = 0; |
148 int num = 0; |
149 |
149 |