summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/Sim.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-03 22:51:15 +0200
committerAki <please@ignore.pl>2022-04-03 22:51:15 +0200
commit4cc312f90d27ea7abb010bd317188d9d08a9fd3e (patch)
tree844ae61007f22a9c561221aad814a54562972641 /StarsEx/Sim.cpp
parent4b8ddd088afb8f0021c6cfa1b7700e0b521b8ac5 (diff)
downloadstarshatter-4cc312f90d27ea7abb010bd317188d9d08a9fd3e.zip
starshatter-4cc312f90d27ea7abb010bd317188d9d08a9fd3e.tar.gz
starshatter-4cc312f90d27ea7abb010bd317188d9d08a9fd3e.tar.bz2
Added base game mode management to Game
Diffstat (limited to 'StarsEx/Sim.cpp')
-rw-r--r--StarsEx/Sim.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/StarsEx/Sim.cpp b/StarsEx/Sim.cpp
index 36d5356..7249d82 100644
--- a/StarsEx/Sim.cpp
+++ b/StarsEx/Sim.cpp
@@ -1553,7 +1553,7 @@ Sim::ExecFrame(double seconds)
// setup music
if (!MusicDirector::IsNoMusic()) {
Starshatter* stars = Starshatter::GetInstance();
- if (stars && stars->GetGameMode() == Starshatter::PLAY_MODE) {
+ if (stars && stars->GetGameMode() == Game::PLAY_MODE) {
Ship* player_ship = GetPlayerShip();
if (player_ship) {
int phase = player_ship->GetFlightPhase();
@@ -3251,7 +3251,7 @@ SimRegion::DestroyShip(Ship* ship)
if (player_destroyed) {
Starshatter* stars = Starshatter::GetInstance();
if (stars)
- stars->SetGameMode(Starshatter::PLAN_MODE);
+ stars->SetGameMode(Game::PLAN_MODE);
}
}
@@ -3386,7 +3386,7 @@ SimRegion::DockShips()
// close mission, return to menu:
Starshatter* stars = Starshatter::GetInstance();
if (stars)
- stars->SetGameMode(Starshatter::PLAN_MODE);
+ stars->SetGameMode(Game::PLAN_MODE);
}
if (carrier)