summaryrefslogtreecommitdiff
path: root/src/road.cpp
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2013-01-08 22:46:42 +0000
committerplanetmaker <planetmaker@openttd.org>2013-01-08 22:46:42 +0000
commitc24374f99c22d9420d6d182ff835f07a5b954b48 (patch)
tree7043ad53c941668339a0949867e10888f9e54f16 /src/road.cpp
parent89a2ba2a6d25e605c391e7343ba66090ee9f26de (diff)
downloadopenttd-c24374f99c22d9420d6d182ff835f07a5b954b48.tar.xz
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
Diffstat (limited to 'src/road.cpp')
-rw-r--r--src/road.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/road.cpp b/src/road.cpp
index fad4cbce1..c005d56c1 100644
--- a/src/road.cpp
+++ b/src/road.cpp
@@ -23,7 +23,7 @@
/**
* Return if the tile is a valid tile for a crossing.
*
- * @param tile the curent tile
+ * @param tile the current tile
* @param ax the axis of the road over the rail
* @return true if it is a valid tile
*/
@@ -36,7 +36,7 @@ static bool IsPossibleCrossing(const TileIndex tile, Axis ax)
}
/**
- * Clean up unneccesary RoadBits of a planed tile.
+ * Clean up unnecessary RoadBits of a planed tile.
* @param tile current tile
* @param org_rb planed RoadBits
* @return optimised RoadBits
@@ -56,7 +56,7 @@ RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb)
const RoadBits mirrored_rb = MirrorRoadBits(target_rb);
switch (GetTileType(neighbor_tile)) {
- /* Allways connective ones */
+ /* Always connective ones */
case MP_CLEAR: case MP_TREES:
connective = true;
break;
@@ -83,11 +83,11 @@ RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb)
connective = !IsWater(neighbor_tile);
break;
- /* The defentetly not connective ones */
+ /* The definitely not connective ones */
default: break;
}
- /* If the neighbor tile is inconnective remove the planed road connection to it */
+ /* If the neighbor tile is inconnective, remove the planed road connection to it */
if (!connective) org_rb ^= target_rb;
}