[Scummvm-cvs-logs] scummvm master -> 76bf7b7c04931c3a7304f3c004221eaf4da05b3a

Strangerke Strangerke at scummvm.org
Sun Feb 24 11:26:03 CET 2013


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:
76bf7b7c04 CGE: Add workaround for the dice puzzle for the devices not using a ALT key


Commit: 76bf7b7c04931c3a7304f3c004221eaf4da05b3a
    https://github.com/scummvm/scummvm/commit/76bf7b7c04931c3a7304f3c004221eaf4da05b3a
Author: Strangerke (strangerke at scummvm.org)
Date: 2013-02-24T02:23:49-08:00

Commit Message:
CGE: Add workaround for the dice puzzle for the devices not using a ALT key

Changed paths:
    engines/cge/snail.cpp



diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp
index c26f68f..4cd95a8 100644
--- a/engines/cge/snail.cpp
+++ b/engines/cge/snail.cpp
@@ -493,7 +493,15 @@ void CGEEngine::snGame(Sprite *spr, int num) {
 		_sprK2->step(newRandom(6));
 		_sprK3->step(newRandom(6));
 
+		// check the ALT key as it's the solution of the puzzle
+		// the test has been restricted to some specific OSes 
+		// in order to avoid some obvious issues (like Android, iOS, NDS, N64...)
+		// Not perfect, but at least better than nothing.
+#if defined(WIN32) || defined(UNIX) || defined(MACOSX) || defined(MOTOEZX) || defined(LINUPY) || defined(LINUXMOTO_SDL)
 		if (spr->_ref == 1 && _keyboard->_keyAlt) {
+#else
+		if (spr->_ref == 1 && _gameCase2Cpt > 1) {
+#endif
 			_sprK1->step(5);
 			_sprK2->step(5);
 			_sprK3->step(5);






More information about the Scummvm-git-logs mailing list