summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/AwardDlg.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-09 22:16:27 +0200
committerAki <please@ignore.pl>2022-04-09 22:16:27 +0200
commit37d4fd61b47137b4f4bc6209c8ecec56981c2007 (patch)
tree575613d86589476ad0edaeba67609e66c238c895 /StarsEx/AwardDlg.cpp
parentaebbb4e305483efee3a714c443badd7edc60675b (diff)
downloadstarshatter-37d4fd61b47137b4f4bc6209c8ecec56981c2007.zip
starshatter-37d4fd61b47137b4f4bc6209c8ecec56981c2007.tar.gz
starshatter-37d4fd61b47137b4f4bc6209c8ecec56981c2007.tar.bz2
Removed dependency on Starshatter in some dialogs and mission gens
Diffstat (limited to 'StarsEx/AwardDlg.cpp')
-rw-r--r--StarsEx/AwardDlg.cpp14
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");
}