diff options
author | Aki <please@ignore.pl> | 2024-04-03 01:31:01 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-04-03 01:31:01 +0200 |
commit | e0f9f411056c235947b809cb21c477aa5acca1b4 (patch) | |
tree | 1371e376659d66ec0c881032b6001630aa4f964b /StarsEx/Sim.cpp | |
parent | 7f1e5f578ec184ebcbbdcd9f7725619ea426d5e4 (diff) | |
download | starshatter-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.cpp | 3 |
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) |