diff options
author | Aki <please@ignore.pl> | 2022-02-23 23:36:37 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-02-23 23:36:37 +0100 |
commit | 0da933a0146a0689546b21231e14f2dfc2bc14e8 (patch) | |
tree | b917762280e2094d77fae2a607d6ad3151174fce /Stars45/NavAI.cpp | |
parent | 8b778dda61c45f5d7a4dc416478c42ff4aa1de7f (diff) | |
download | starshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.zip starshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.tar.gz starshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.tar.bz2 |
Switched to use ContentBundle's GetText
Diffstat (limited to 'Stars45/NavAI.cpp')
-rw-r--r-- | Stars45/NavAI.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Stars45/NavAI.cpp b/Stars45/NavAI.cpp index d20ce8b..fe1ac75 100644 --- a/Stars45/NavAI.cpp +++ b/Stars45/NavAI.cpp @@ -30,6 +30,7 @@ #include "HUDSounds.h" #include "Game.h" +#include "ContentBundle.h" // +----------------------------------------------------------------------+ @@ -169,7 +170,7 @@ NavAI::FindObjective() // transform into camera coords: objective = Transform(obj_w); - ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.takeoff")); + ship->SetDirectorInfo(ContentBundle::GetInstance()->GetText("ai.takeoff")); return; } @@ -308,15 +309,15 @@ NavAI::Navigator() if (navpt) { if (navpt->Status() == Instruction::COMPLETE && navpt->HoldTime() > 0) { - ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.auto-hold")); + ship->SetDirectorInfo(ContentBundle::GetInstance()->GetText("ai.auto-hold")); hold = true; } else { - ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.auto-nav")); + ship->SetDirectorInfo(ContentBundle::GetInstance()->GetText("ai.auto-nav")); } } else { - ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.auto-stop")); + ship->SetDirectorInfo(ContentBundle::GetInstance()->GetText("ai.auto-stop")); } Accumulate(AvoidTerrain()); @@ -596,11 +597,11 @@ NavAI::AvoidTerrain() // too low? if (ship->AltitudeAGL() < 1000) { terrain_warning = true; - ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.too-low")); + ship->SetDirectorInfo(ContentBundle::GetInstance()->GetText("ai.too-low")); // way too low? if (ship->AltitudeAGL() < 750) { - ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.way-too-low")); + ship->SetDirectorInfo(ContentBundle::GetInstance()->GetText("ai.way-too-low")); } // where will we be? |