Turn Indy4 mousefighting on by default. Can we do this in a better place?

svn-id: r3953
This commit is contained in:
James Brown 2002-04-16 05:36:41 +00:00
parent 6cb3d8fe1b
commit d7b8074eca

View file

@ -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