diff options
author | James Brown | 2002-04-16 05:36:41 +0000 |
---|---|---|
committer | James Brown | 2002-04-16 05:36:41 +0000 |
commit | d7b8074eca0f86af2b60d895381a22aff55dd229 (patch) | |
tree | 25d07e89860b2855eb40394d660f57c4e440065b | |
parent | 6cb3d8fe1b9e6757fa1a783de2fbb7ad6bbe65c2 (diff) | |
download | scummvm-rg350-d7b8074eca0f86af2b60d895381a22aff55dd229.tar.gz scummvm-rg350-d7b8074eca0f86af2b60d895381a22aff55dd229.tar.bz2 scummvm-rg350-d7b8074eca0f86af2b60d895381a22aff55dd229.zip |
Turn Indy4 mousefighting on by default. Can we do this in a better place?
svn-id: r3953
-rw-r--r-- | script.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script.cpp b/script.cpp index 53f2754624..069d8ccb40 100644 --- a/script.cpp +++ b/script.cpp @@ -366,6 +366,12 @@ void Scumm::writeVar(uint var, int value) var &= 0x7FFF; checkRange(_numBitVariables - 1, 0, var, "Bit variable %d out of range(w)"); + + /* FIXME: Enable Indy4 mousefighting by default. + is there a better place to put this? */ + if (_gameId == GID_INDY4 && var == 107 && vm.slot[_currentScript].number == 1) + value = 1; + if (value) _bitVars[var >> 3] |= (1 << (var & 7)); else |