summaryrefslogtreecommitdiffhomepage
path: root/Stars45/NavAI.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-02-18 23:54:30 +0100
committerAki <please@ignore.pl>2022-02-18 23:54:30 +0100
commit0052edae47d1e6ae613497c524719eff5838f52a (patch)
tree3ba92a7846374ba274cba38d924e65f7c2ceb344 /Stars45/NavAI.cpp
parent2ae135bbe43065978a4659278d18d9533d8a3b27 (diff)
downloadstarshatter-0052edae47d1e6ae613497c524719eff5838f52a.zip
starshatter-0052edae47d1e6ae613497c524719eff5838f52a.tar.gz
starshatter-0052edae47d1e6ae613497c524719eff5838f52a.tar.bz2
Switched to use GetIntance for Game instead of static methods
Diffstat (limited to 'Stars45/NavAI.cpp')
-rw-r--r--Stars45/NavAI.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Stars45/NavAI.cpp b/Stars45/NavAI.cpp
index da37c8c..d20ce8b 100644
--- a/Stars45/NavAI.cpp
+++ b/Stars45/NavAI.cpp
@@ -169,7 +169,7 @@ NavAI::FindObjective()
// transform into camera coords:
objective = Transform(obj_w);
- ship->SetDirectorInfo(Game::GetText("ai.takeoff"));
+ ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.takeoff"));
return;
}
@@ -308,15 +308,15 @@ NavAI::Navigator()
if (navpt) {
if (navpt->Status() == Instruction::COMPLETE && navpt->HoldTime() > 0) {
- ship->SetDirectorInfo(Game::GetText("ai.auto-hold"));
+ ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.auto-hold"));
hold = true;
}
else {
- ship->SetDirectorInfo(Game::GetText("ai.auto-nav"));
+ ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.auto-nav"));
}
}
else {
- ship->SetDirectorInfo(Game::GetText("ai.auto-stop"));
+ ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.auto-stop"));
}
Accumulate(AvoidTerrain());
@@ -596,11 +596,11 @@ NavAI::AvoidTerrain()
// too low?
if (ship->AltitudeAGL() < 1000) {
terrain_warning = true;
- ship->SetDirectorInfo(Game::GetText("ai.too-low"));
+ ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.too-low"));
// way too low?
if (ship->AltitudeAGL() < 750) {
- ship->SetDirectorInfo(Game::GetText("ai.way-too-low"));
+ ship->SetDirectorInfo(Game::GetInstance()->GetText("ai.way-too-low"));
}
// where will we be?