aboutsummaryrefslogtreecommitdiff
path: root/Source/Game.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2018-02-03 16:05:37 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2018-02-03 16:05:37 +0100
commit6364d64cbca986c61b3bea76167610198fbe99bb (patch)
tree445e96738e5712e4518bc6b63f7d82f347c3a3ef /Source/Game.c
parent7d14b5036066d9391d52ab73ca4b26c03e3cb6c2 (diff)
downloadairport-6364d64cbca986c61b3bea76167610198fbe99bb.tar.gz
* Aircraft.c: files were being loaded each time level was selected.
* Game.c: score bonus is now added depending on flight remaining time. + Added second level.
Diffstat (limited to 'Source/Game.c')
-rw-r--r--Source/Game.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Game.c b/Source/Game.c
index 2670dc0..f3fd11a 100644
--- a/Source/Game.c
+++ b/Source/Game.c
@@ -3968,6 +3968,9 @@ void GameRemoveFlight(uint8_t idx, bool successful)
if (successful != false)
{
GameScore += SCORE_REWARD_FINISH_FLIGHT;
+
+ // Add punctuation
+ GameScore += FlightData.RemainingTime[idx] << 1;
}
else
{