diff options
| author | Strangerke | 2013-02-24 11:21:52 +0100 |
|---|---|---|
| committer | Strangerke | 2013-02-24 11:23:49 +0100 |
| commit | 76bf7b7c04931c3a7304f3c004221eaf4da05b3a (patch) | |
| tree | 59a7d8cc55a652aa4b7d4bda1a15a02ad83dde08 /engines/cge | |
| parent | 2d1fd3b5549fc972b342f3292c77d562b401a91a (diff) | |
| download | scummvm-rg350-76bf7b7c04931c3a7304f3c004221eaf4da05b3a.tar.gz scummvm-rg350-76bf7b7c04931c3a7304f3c004221eaf4da05b3a.tar.bz2 scummvm-rg350-76bf7b7c04931c3a7304f3c004221eaf4da05b3a.zip | |
CGE: Add workaround for the dice puzzle for the devices not using a ALT key
Diffstat (limited to 'engines/cge')
| -rw-r--r-- | engines/cge/snail.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp index c26f68fa7b..4cd95a888e 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); |
