summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/Sim.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-04-03 01:31:01 +0200
committerAki <please@ignore.pl>2024-04-03 01:31:01 +0200
commite0f9f411056c235947b809cb21c477aa5acca1b4 (patch)
tree1371e376659d66ec0c881032b6001630aa4f964b /StarsEx/Sim.cpp
parent7f1e5f578ec184ebcbbdcd9f7725619ea426d5e4 (diff)
downloadstarshatter-e0f9f411056c235947b809cb21c477aa5acca1b4.zip
starshatter-e0f9f411056c235947b809cb21c477aa5acca1b4.tar.gz
starshatter-e0f9f411056c235947b809cb21c477aa5acca1b4.tar.bz2
Fixed mission points reward calculation
Diffstat (limited to 'StarsEx/Sim.cpp')
-rw-r--r--StarsEx/Sim.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/StarsEx/Sim.cpp b/StarsEx/Sim.cpp
index f938b7a..5e49cb0 100644
--- a/StarsEx/Sim.cpp
+++ b/StarsEx/Sim.cpp
@@ -206,7 +206,8 @@ Sim::CommitMission()
if (s->IsPlayer()) {
Player* p = Player::GetCurrentPlayer();
- p->ProcessStats(s, starshatter::engine::MissionTime());
+ s->SetFlightTime(starshatter::engine::MissionTime());
+ p->ProcessStats(s);
if (mission && mission->Type() == Mission::TRAINING &&
s->GetDeaths() == 0 && s->GetColls() == 0)