diff options
author | Aki <please@ignore.pl> | 2022-04-09 22:16:27 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-09 22:16:27 +0200 |
commit | 37d4fd61b47137b4f4bc6209c8ecec56981c2007 (patch) | |
tree | 575613d86589476ad0edaeba67609e66c238c895 /StarsEx/CmdDlg.cpp | |
parent | aebbb4e305483efee3a714c443badd7edc60675b (diff) | |
download | starshatter-37d4fd61b47137b4f4bc6209c8ecec56981c2007.zip starshatter-37d4fd61b47137b4f4bc6209c8ecec56981c2007.tar.gz starshatter-37d4fd61b47137b4f4bc6209c8ecec56981c2007.tar.bz2 |
Removed dependency on Starshatter in some dialogs and mission gens
Diffstat (limited to 'StarsEx/CmdDlg.cpp')
-rw-r--r-- | StarsEx/CmdDlg.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/StarsEx/CmdDlg.cpp b/StarsEx/CmdDlg.cpp index 89f7a9e..0392e24 100644 --- a/StarsEx/CmdDlg.cpp +++ b/StarsEx/CmdDlg.cpp @@ -14,7 +14,6 @@ #include "CmdDlg.h" #include "CmpFileDlg.h" #include "CmpnScreen.h" -#include "Starshatter.h" #include "Campaign.h" #include "Combatant.h" #include "CombatGroup.h" @@ -35,9 +34,8 @@ CmdDlg::CmdDlg(CmpnScreen* mgr) : cmpn_screen(mgr), txt_group(0), txt_score(0), txt_name(0), txt_time(0), - btn_save(0), btn_exit(0), stars(0), campaign(0), mode(0) + btn_save(0), btn_exit(0), campaign(0), mode(0) { - stars = Starshatter::GetInstance(); campaign = Campaign::GetCampaign(); for (int i = 0; i < 5; i++) @@ -173,9 +171,9 @@ CmdDlg::OnSave(AWEvent* event) void CmdDlg::OnExit(AWEvent* event) { - if (stars) { + if (auto game = Game::GetInstance()) { Mouse::Show(false); - stars->SetGameMode(Game::MENU_MODE); + game->SetGameMode(Game::MENU_MODE); } } |