aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorJohannes Schickel2011-08-20 19:30:18 +0200
committerJohannes Schickel2011-08-20 19:30:18 +0200
commit5a1f75eae3a1d15bf0c610d2468a2afef30a893b (patch)
tree841c25b0cfc00f76bc79ef61f60c257adf095db8 /engines/agos
parentcaeac1f8e37ba68b8800e4094c493162b5701bb2 (diff)
downloadscummvm-rg350-5a1f75eae3a1d15bf0c610d2468a2afef30a893b.tar.gz
scummvm-rg350-5a1f75eae3a1d15bf0c610d2468a2afef30a893b.tar.bz2
scummvm-rg350-5a1f75eae3a1d15bf0c610d2468a2afef30a893b.zip
AGOS: Slight cleanup.
Now AgosEngine::_language is of type Common::Language instead of uint16. It is currently only used with values of that enumeration, thus it should be safe to use that type for it too.
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/agos.h2
-rw-r--r--engines/agos/script_s1.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/agos.h b/engines/agos/agos.h
index 359dfd5ff1..820bc0260b 100644
--- a/engines/agos/agos.h
+++ b/engines/agos/agos.h
@@ -324,7 +324,7 @@ protected:
bool _backFlag;
uint16 _debugMode;
- uint16 _language;
+ Common::Language _language;
bool _copyProtection;
bool _pause;
bool _dumpScripts;
diff --git a/engines/agos/script_s1.cpp b/engines/agos/script_s1.cpp
index b5c39fb65e..a07c05b4fc 100644
--- a/engines/agos/script_s1.cpp
+++ b/engines/agos/script_s1.cpp
@@ -310,7 +310,7 @@ void AGOSEngine_Simon1::os1_pauseGame() {
Common::KeyCode keyYes, keyNo;
- Common::getLanguageYesNo((Common::Language)_language, keyYes, keyNo);
+ Common::getLanguageYesNo(_language, keyYes, keyNo);
while (!shouldQuit()) {
delay(1);