diff options
author | Strangerke | 2012-12-24 11:36:53 +0100 |
---|---|---|
committer | Strangerke | 2012-12-24 11:36:53 +0100 |
commit | 8c1f422bd68fe23c4e73ba3d3b13de028c905134 (patch) | |
tree | 1b4f33a4510fffb40283c86c2f8108834a9a0496 /engines/hopkins/globals.cpp | |
parent | 8cce2721177422a65e73c9f178746403c801f242 (diff) | |
download | scummvm-rg350-8c1f422bd68fe23c4e73ba3d3b13de028c905134.tar.gz scummvm-rg350-8c1f422bd68fe23c4e73ba3d3b13de028c905134.tar.bz2 scummvm-rg350-8c1f422bd68fe23c4e73ba3d3b13de028c905134.zip |
HOPKINS: Remove magic values used to check language, some renaming and refactoring
Diffstat (limited to 'engines/hopkins/globals.cpp')
-rw-r--r-- | engines/hopkins/globals.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/hopkins/globals.cpp b/engines/hopkins/globals.cpp index b5c2d44d4d..dc9254b6e6 100644 --- a/engines/hopkins/globals.cpp +++ b/engines/hopkins/globals.cpp @@ -114,7 +114,7 @@ Globals::Globals() { Common::fill((byte *)&Tri[i], (byte *)&Tri[i] + sizeof(TriItem), 0); // Initialise fields - FR = 0; + _language = LANG_EN; SVGA = 2; _internetFl = true; @@ -137,7 +137,7 @@ Globals::Globals() { nbrligne = 0; largeur_boite = 0; hauteur_boite = 0; - FORET = false; + forest = false; _objectWidth = _objectHeight = 0; HELICO = 0; _catalogPos = 0; @@ -303,13 +303,13 @@ void Globals::setConfig() { switch (_vm->getLanguage()) { case Common::EN_ANY: case Common::PL_POL: - FR = 0; + _language = LANG_EN; break; case Common::FR_FRA: - FR = 1; + _language = LANG_FR; break; case Common::ES_ESP: - FR = 2; + _language = LANG_SP; break; default: warning("Unknown language in internal language mapping"); @@ -322,16 +322,16 @@ void Globals::setConfig() { _internetFl = false; // End of CHECKME - switch (FR) { - case 0: + switch (_language) { + case LANG_EN: FICH_ZONE = "ZONEAN.TXT"; FICH_TEXTE = "TEXTEAN.TXT"; break; - case 1: + case LANG_FR: FICH_ZONE = "ZONE01.TXT"; FICH_TEXTE = "TEXTE01.TXT"; break; - case 2: + case LANG_SP: FICH_ZONE = "ZONEES.TXT"; FICH_TEXTE = "TEXTEES.TXT"; break; @@ -418,7 +418,7 @@ void Globals::clearAll() { ADR_FICHIER_OBJ = g_PTRNUL; FORETSPR = g_PTRNUL; - FORET = false; + forest = false; cache_souris = allocMemory(2500); GESTE = g_PTRNUL; |