aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2008-09-16 08:12:13 +0000
committerFilippos Karapetis2008-09-16 08:12:13 +0000
commit2748701dbe6ac43965ba09b3da4666c6cb0a3deb (patch)
treebffbc5d58213709dd8eba65fb54cc29f09247bf7
parent4fced32082e8e990de30c91856fd430c49f29092 (diff)
downloadscummvm-rg350-2748701dbe6ac43965ba09b3da4666c6cb0a3deb.tar.gz
scummvm-rg350-2748701dbe6ac43965ba09b3da4666c6cb0a3deb.tar.bz2
scummvm-rg350-2748701dbe6ac43965ba09b3da4666c6cb0a3deb.zip
Assign _lang to the appropriate enum values
svn-id: r34572
-rw-r--r--engines/drascula/drascula.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index 34f3701f31..4c825fbdcf 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -65,7 +65,7 @@ DrasculaEngine::DrasculaEngine(OSystem *syst, const DrasculaGameDescription *gam
if (cd_num >= 0)
_system->openCD(cd_num);
- _lang = 0;
+ _lang = kEnglish;
}
DrasculaEngine::~DrasculaEngine() {
@@ -113,23 +113,23 @@ int DrasculaEngine::init() {
switch (getLanguage()) {
case Common::EN_ANY:
- _lang = 0;
+ _lang = kEnglish;
break;
case Common::ES_ESP:
- _lang = 1;
+ _lang = kSpanish;
break;
case Common::DE_DEU:
- _lang = 2;
+ _lang = kGerman;
break;
case Common::FR_FRA:
- _lang = 3;
+ _lang = kFrench;
break;
case Common::IT_ITA:
- _lang = 4;
+ _lang = kItalian;
break;
default:
warning("Unknown game language. Falling back to English");
- _lang = 0;
+ _lang = kEnglish;
}
_charMap = 0;