* Made Game::_variables private and, instead, added Game::{get,set}Variable() methods.

* Removed obsolete comment about the cyclic field not being used in Game::loadAnimation()

svn-id: r42246
This commit is contained in:
Denis Kasak 2009-07-07 21:30:36 +00:00
parent bab9293f97
commit dd955bb08e
3 changed files with 16 additions and 5 deletions

View file

@ -303,10 +303,10 @@ int Script::handleMathExpression(Common::MemoryReadStream &reader) {
case kMathVariable:
value = reader.readUint16LE();
stk.push(_vm->_game->_variables[value-1]);
stk.push(_vm->_game->getVariable(value-1));
debugC(3, kDraciBytecodeDebugLevel, "\t\tvariable: %d (%d)", value,
_vm->_game->_variables[value-1]);
_vm->_game->getVariable(value-1));
break;
case kMathFunctionCall: