summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-04-03 16:12:28 +0000
committerbelugas <belugas@openttd.org>2007-04-03 16:12:28 +0000
commit56943ab5849bd4a67819d90bc7f5118ed48d2a22 (patch)
tree58f428589debc35ef0698746db83b8195f98ca7f /src/aircraft_cmd.cpp
parent0d691539a40b6cec330a3adf2718f1fe33f89aab (diff)
downloadopenttd-56943ab5849bd4a67819d90bc7f5118ed48d2a22.tar.xz
(svn r9551) -Documentation: Some more doxygen work
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 4c53254f0..9d6310fcd 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -2162,6 +2162,10 @@ void UpdateOldAircraft()
}
}
+/**
+ * Updates the status of the Aircraft heading or in the station
+ * @param st Station been updated
+ */
void UpdateAirplanesOnNewStation(const Station *st)
{
/* only 1 station is updated per function call, so it is enough to get entry_point once */
@@ -2172,7 +2176,7 @@ void UpdateAirplanesOnNewStation(const Station *st)
if (v->type == VEH_AIRCRAFT && IsNormalAircraft(v)) {
if (v->u.air.targetairport == st->index) { // if heading to this airport
/* update position of airplane. If plane is not flying, landing, or taking off
- *you cannot delete airport, so it doesn't matter */
+ * you cannot delete airport, so it doesn't matter */
if (v->u.air.state >= FLYING) { // circle around
v->u.air.pos = v->u.air.previous_pos = AircraftGetEntryPoint(v, ap);
v->u.air.state = FLYING;