* 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:
parent
bab9293f97
commit
dd955bb08e
3 changed files with 16 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue