diff options
author | alberth <alberth@openttd.org> | 2010-11-05 16:34:22 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-11-05 16:34:22 +0000 |
commit | fa13971337e00ffcd02524bd8a8ce794001564f9 (patch) | |
tree | 624dda236f4e315b455ee599f2009d04f1fdff75 /src/vehicle.cpp | |
parent | 5e3991e20e39fdbe772c68b58ad2fcb88acdf707 (diff) | |
download | openttd-fa13971337e00ffcd02524bd8a8ce794001564f9.tar.xz |
(svn r21088) -Doc: Additions/corrections of doxygen comments.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index dc155f9ac..8052a29ac 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -841,6 +841,10 @@ void CallVehicleTicks() cur_company.Restore(); } +/** + * Add vehicle sprite for drawing to the screen. + * @param v Vehicle to draw. + */ static void DoDrawVehicle(const Vehicle *v) { SpriteID image = v->cur_image; @@ -1046,6 +1050,10 @@ bool Vehicle::HandleBreakdown() } } +/** + * Update age of a vehicle. + * @param v Vehicle to update. + */ void AgeVehicle(Vehicle *v) { if (v->age < MAX_DAY) v->age++; |