diff options
author | Matthew Hoops | 2015-12-21 17:58:09 -0500 |
---|---|---|
committer | Matthew Hoops | 2015-12-21 17:58:09 -0500 |
commit | bb12f77cbfbcdf51538d68db91dd9e0f7ad4509e (patch) | |
tree | 51665f677fa056ef8896c81292c3d03c71997d72 | |
parent | d0d1d6e921ac656243d2b46b4f6512a19f18125d (diff) | |
download | scummvm-rg350-bb12f77cbfbcdf51538d68db91dd9e0f7ad4509e.tar.gz scummvm-rg350-bb12f77cbfbcdf51538d68db91dd9e0f7ad4509e.tar.bz2 scummvm-rg350-bb12f77cbfbcdf51538d68db91dd9e0f7ad4509e.zip |
BBVS: Fix compilation without translation enabled
A regression from 2a6cbd0
-rw-r--r-- | engines/bbvs/bbvs.cpp | 4 | ||||
-rw-r--r-- | engines/bbvs/bbvs.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/bbvs/bbvs.cpp b/engines/bbvs/bbvs.cpp index 816b713b1f..d40d5e482f 100644 --- a/engines/bbvs/bbvs.cpp +++ b/engines/bbvs/bbvs.cpp @@ -118,15 +118,19 @@ BbvsEngine::BbvsEngine(OSystem *syst, const ADGameDescription *gd) : Engine::syncSoundSettings(); +#ifdef USE_TRANSLATION _oldGUILanguage = TransMan.getCurrentLanguage(); if (gd->flags & GF_GUILANGSWITCH) TransMan.setLanguage(getLanguageLocale(gd->language)); +#endif } BbvsEngine::~BbvsEngine() { +#ifdef USE_TRANSLATION if (TransMan.getCurrentLanguage() != _oldGUILanguage) TransMan.setLanguage(_oldGUILanguage); +#endif delete _random; diff --git a/engines/bbvs/bbvs.h b/engines/bbvs/bbvs.h index d098aaf90b..ff4afe9526 100644 --- a/engines/bbvs/bbvs.h +++ b/engines/bbvs/bbvs.h @@ -234,7 +234,10 @@ public: private: Graphics::PixelFormat _pixelFormat; + +#ifdef USE_TRANSLATION Common::String _oldGUILanguage; +#endif public: Common::RandomSource *_random; |