From bb12f77cbfbcdf51538d68db91dd9e0f7ad4509e Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 21 Dec 2015 17:58:09 -0500 Subject: BBVS: Fix compilation without translation enabled A regression from 2a6cbd0 --- engines/bbvs/bbvs.cpp | 4 ++++ engines/bbvs/bbvs.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'engines') 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; -- cgit v1.2.3