aboutsummaryrefslogtreecommitdiff
path: root/Source/Aircraft.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-08-18 20:17:13 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-08-18 20:17:13 +0200
commitb1aad213d450beae9920e30d6534680474f8df6f (patch)
treeac1f7affa103f70ad08e468e5450de7b21360dfa /Source/Aircraft.c
parent150cc8adc003fea9812a58f1f224ec10a91cd44a (diff)
downloadairport-b1aad213d450beae9920e30d6534680474f8df6f.tar.gz
* Added more comments.
* Radio chatter sounds. * Created aircraft state STATE_STOPPED, to be used when L1 is pressed on aircraft selection mode.
Diffstat (limited to 'Source/Aircraft.c')
-rw-r--r--Source/Aircraft.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Aircraft.c b/Source/Aircraft.c
index 0347edd..27a62d0 100644
--- a/Source/Aircraft.c
+++ b/Source/Aircraft.c
@@ -269,6 +269,10 @@ void AircraftSpeed(TYPE_AIRCRAFT_DATA* ptrAircraft)
{
switch(ptrAircraft->State)
{
+ case STATE_STOPPED:
+ ptrAircraft->Speed = 0;
+ break;
+
case STATE_FINAL:
ptrAircraft->Speed = AircraftSpeedsTable[AIRCRAFT_SPEED_FINAL];
break;