summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-08-15 14:06:43 +0000
committeralberth <alberth@openttd.org>2010-08-15 14:06:43 +0000
commit35fec79700a961ccd9f3d13bc068edccc63dc6a5 (patch)
tree89db9e984c5c6100fcaa55ee36f29fd6027132dc /src/roadveh_cmd.cpp
parent15514baf8b19c87c559361798c8d7705f2b3edf0 (diff)
downloadopenttd-35fec79700a961ccd9f3d13bc068edccc63dc6a5.tar.xz
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 5df63c9e5..b9296a866 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -146,6 +146,15 @@ SpriteID RoadVehicle::GetImage(Direction direction) const
return sprite;
}
+/**
+ * Draw a road vehicle engine.
+ * @param left Left edge to draw within.
+ * @param right Right edge to draw within.
+ * @param preferred_x Preferred position of the engine.
+ * @param y Vertical position of the engine.
+ * @param engine Engine to draw
+ * @param pal Palette to use.
+ */
void DrawRoadVehEngine(int left, int right, int preferred_x, int y, EngineID engine, PaletteID pal)
{
SpriteID sprite = GetRoadVehIcon(engine);
@@ -1122,7 +1131,7 @@ static Trackdir FollowPreviousRoadVehicle(const RoadVehicle *v, const RoadVehicl
if (already_reversed && prev->tile != tile) {
/*
* The vehicle has reversed, but did not go straight back.
- * It immediatelly turn onto another tile. This means that
+ * It immediately turn onto another tile. This means that
* the roadstate of the previous vehicle cannot be used
* as the direction we have to go with this vehicle.
*