[Scummvm-git-logs] scummvm master -> 53977b8128a4d283613695e0295b4270b8d72ee0

dreammaster dreammaster at scummvm.org
Sun Jan 1 11:36:50 CET 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
53977b8128 TITANIC: Support for German version MissiveOMat passwords


Commit: 53977b8128a4d283613695e0295b4270b8d72ee0
    https://github.com/scummvm/scummvm/commit/53977b8128a4d283613695e0295b4270b8d72ee0
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-01-01T05:36:40-05:00

Commit Message:
TITANIC: Support for German version MissiveOMat passwords

Changed paths:
    engines/titanic/game/missiveomat.cpp


diff --git a/engines/titanic/game/missiveomat.cpp b/engines/titanic/game/missiveomat.cpp
index e3ce5d8..a244109 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;
 			}





More information about the Scummvm-git-logs mailing list