Assign _lang to the appropriate enum values

svn-id: r34572
This commit is contained in:
Filippos Karapetis 2008-09-16 08:12:13 +00:00
parent 4fced32082
commit 2748701dbe

View File

@ -65,7 +65,7 @@ DrasculaEngine::DrasculaEngine(OSystem *syst, const DrasculaGameDescription *gam
if (cd_num >= 0) if (cd_num >= 0)
_system->openCD(cd_num); _system->openCD(cd_num);
_lang = 0; _lang = kEnglish;
} }
DrasculaEngine::~DrasculaEngine() { DrasculaEngine::~DrasculaEngine() {
@ -113,23 +113,23 @@ int DrasculaEngine::init() {
switch (getLanguage()) { switch (getLanguage()) {
case Common::EN_ANY: case Common::EN_ANY:
_lang = 0; _lang = kEnglish;
break; break;
case Common::ES_ESP: case Common::ES_ESP:
_lang = 1; _lang = kSpanish;
break; break;
case Common::DE_DEU: case Common::DE_DEU:
_lang = 2; _lang = kGerman;
break; break;
case Common::FR_FRA: case Common::FR_FRA:
_lang = 3; _lang = kFrench;
break; break;
case Common::IT_ITA: case Common::IT_ITA:
_lang = 4; _lang = kItalian;
break; break;
default: default:
warning("Unknown game language. Falling back to English"); warning("Unknown game language. Falling back to English");
_lang = 0; _lang = kEnglish;
} }
_charMap = 0; _charMap = 0;