mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
SCUMM: Enable snap scroll only for games which actually feature it
This also gets rid of a bug in which in MANIAC V1, the Edna trigger point at the beginning of the game can be totally bypassed, breaking the game. In order to get rid of this whole class of bugs, we only enable snap scrolling only for the games which were designed for it.
This commit is contained in:
@@ -545,7 +545,7 @@ void ScummEngine::processKeyboard(Common::KeyState lastKeyHit) {
|
||||
bool talkstopKeyEnabled = (VAR_TALKSTOP_KEY == 0xFF || VAR(VAR_TALKSTOP_KEY) != 0);
|
||||
bool cutsceneExitKeyEnabled = (VAR_CUTSCENEEXIT_KEY == 0xFF || VAR(VAR_CUTSCENEEXIT_KEY) != 0);
|
||||
bool mainmenuKeyEnabled = (VAR_MAINMENU_KEY == 0xFF || VAR(VAR_MAINMENU_KEY) != 0);
|
||||
bool snapScrollKeyEnabled = (_game.version <= 2 || VAR_CAMERA_FAST_X != 0xFF);
|
||||
bool snapScrollKeyEnabled = (_game.version >= 2 && _game.version <= 4);
|
||||
|
||||
// In FM-TOWNS games F8 / restart is always enabled
|
||||
if (_game.platform == Common::kPlatformFMTowns)
|
||||
|
||||
Reference in New Issue
Block a user