diff options
Diffstat (limited to 'StarsEx/AwardDlg.cpp')
-rw-r--r-- | StarsEx/AwardDlg.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/StarsEx/AwardDlg.cpp b/StarsEx/AwardDlg.cpp index 90e1bb4..7ec04a5 100644 --- a/StarsEx/AwardDlg.cpp +++ b/StarsEx/AwardDlg.cpp @@ -13,7 +13,6 @@ #include "AwardDlg.h" #include "PlanScreen.h" -#include "Starshatter.h" #include "Ship.h" #include "Player.h" #include "Campaign.h" @@ -29,7 +28,6 @@ #include "Keyboard.h" #include "Mouse.h" #include "Sound.h" -#include "Panic.h" // +--------------------------------------------------------------------+ // DECLARE MAPPING FUNCTIONS: @@ -134,18 +132,12 @@ AwardDlg::OnClose(AWEvent* event) if (player) player->ClearShowAward(); - Starshatter* stars = Starshatter::GetInstance(); - - if (stars) { + if (auto game = Game::GetInstance()) { Mouse::Show(false); - Campaign* campaign = Campaign::GetCampaign(); if (campaign && campaign->GetCampaignId() < Campaign::SINGLE_MISSIONS) - stars->SetGameMode(Game::CMPN_MODE); + game->SetGameMode(Game::CMPN_MODE); else - stars->SetGameMode(Game::MENU_MODE); + game->SetGameMode(Game::MENU_MODE); } - - else - Panic::Panic("AwardDlg::OnClose() - Game instance not found"); } |