diff options
author | Paul Gilbert | 2017-01-01 05:36:40 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-01-01 05:36:40 -0500 |
commit | 53977b8128a4d283613695e0295b4270b8d72ee0 (patch) | |
tree | 61c7c994daaec848aa76c033ed9bfe118c3c902d | |
parent | d0d00f6beb9a2fab19455f653837af1b629d00da (diff) | |
download | scummvm-rg350-53977b8128a4d283613695e0295b4270b8d72ee0.tar.gz scummvm-rg350-53977b8128a4d283613695e0295b4270b8d72ee0.tar.bz2 scummvm-rg350-53977b8128a4d283613695e0295b4270b8d72ee0.zip |
TITANIC: Support for German version MissiveOMat passwords
-rw-r--r-- | engines/titanic/game/missiveomat.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/titanic/game/missiveomat.cpp b/engines/titanic/game/missiveomat.cpp index e3ce5d8502..a244109801 100644 --- a/engines/titanic/game/missiveomat.cpp +++ b/engines/titanic/game/missiveomat.cpp @@ -141,15 +141,19 @@ bool CMissiveOMat::KeyCharMsg(CKeyCharMsg *msg) { } // Check whether a valid username and password has been entered + static const char *const PASSWORDS_EN[3] = { "other", "this", "that" }; + static const char *const PASSWORDS_DE[3] = { "t'ok", "t'ik", "t'ak" }; + static const char *const *pwds = g_vm->isGerman() ? PASSWORDS_DE : PASSWORDS_EN; + bool validFlag = false; - if ((_username == "leovinus" && _password == "other") || + if ((_username == "leovinus" && _password == pwds[0]) || (_username == "scummvm")) { validFlag = true; _account = LEOVINUS; - } else if (_username == "scraliontis" && _password == "this") { + } else if (_username == "scraliontis" && _password == pwds[1]) { validFlag = true; _account = SCRALIONTIS; - } else if (_username == "brobostigon" && _password == "that") { + } else if (_username == "brobostigon" && _password == pwds[2]) { validFlag = true; _account = BROBOSTIGON; } |