diff options
author | Aki <please@ignore.pl> | 2022-04-03 22:51:15 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-03 22:51:15 +0200 |
commit | 4cc312f90d27ea7abb010bd317188d9d08a9fd3e (patch) | |
tree | 844ae61007f22a9c561221aad814a54562972641 /StarsEx/CmpnScreen.cpp | |
parent | 4b8ddd088afb8f0021c6cfa1b7700e0b521b8ac5 (diff) | |
download | starshatter-4cc312f90d27ea7abb010bd317188d9d08a9fd3e.zip starshatter-4cc312f90d27ea7abb010bd317188d9d08a9fd3e.tar.gz starshatter-4cc312f90d27ea7abb010bd317188d9d08a9fd3e.tar.bz2 |
Added base game mode management to Game
Diffstat (limited to 'StarsEx/CmpnScreen.cpp')
-rw-r--r-- | StarsEx/CmpnScreen.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/StarsEx/CmpnScreen.cpp b/StarsEx/CmpnScreen.cpp index 970eaf9..70fcf8a 100644 --- a/StarsEx/CmpnScreen.cpp +++ b/StarsEx/CmpnScreen.cpp @@ -41,6 +41,7 @@ #include "FontMgr.h" #include "EventDispatch.h" #include "DataLoader.h" +#include "Game.h" // +--------------------------------------------------------------------+ @@ -283,7 +284,7 @@ CmpnScreen::ExecFrame() if (c) { c->Load(); Campaign::SelectCampaign(c->Name()); - stars->SetGameMode(Starshatter::CLOD_MODE); + stars->SetGameMode(Game::CLOD_MODE); return; } } @@ -297,7 +298,7 @@ CmpnScreen::ExecFrame() else { Mouse::Show(false); MusicDirector::SetMode(MusicDirector::MENU); - stars->SetGameMode(Starshatter::MENU_MODE); + stars->SetGameMode(Game::MENU_MODE); return; } } |