From 0da933a0146a0689546b21231e14f2dfc2bc14e8 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 23 Feb 2022 23:36:37 +0100 Subject: Switched to use ContentBundle's GetText --- Stars45/Weather.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Stars45/Weather.cpp') diff --git a/Stars45/Weather.cpp b/Stars45/Weather.cpp index 2f626ea..9c2b170 100644 --- a/Stars45/Weather.cpp +++ b/Stars45/Weather.cpp @@ -15,6 +15,7 @@ #include "Weather.h" #include "StarSystem.h" #include "Game.h" +#include "ContentBundle.h" // +--------------------------------------------------------------------+ @@ -149,27 +150,27 @@ Weather::Description() const switch (state) { default: case CLEAR: - description = Game::GetInstance()->GetText("weather.clear"); + description = ContentBundle::GetInstance()->GetText("weather.clear"); break; case HIGH_CLOUDS: - description = Game::GetInstance()->GetText("weather.high-clouds"); + description = ContentBundle::GetInstance()->GetText("weather.high-clouds"); break; case MODERATE_CLOUDS: - description = Game::GetInstance()->GetText("weather.partly-cloudy"); + description = ContentBundle::GetInstance()->GetText("weather.partly-cloudy"); break; case OVERCAST: - description = Game::GetInstance()->GetText("weather.overcast"); + description = ContentBundle::GetInstance()->GetText("weather.overcast"); break; case FOG: - description = Game::GetInstance()->GetText("weather.fog"); + description = ContentBundle::GetInstance()->GetText("weather.fog"); break; case STORM: - description = Game::GetInstance()->GetText("weather.storm"); + description = ContentBundle::GetInstance()->GetText("weather.storm"); break; } -- cgit v1.1