aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/script_func.cpp
diff options
context:
space:
mode:
authorD G Turner2012-07-07 14:37:15 +0100
committerD G Turner2012-07-07 14:37:15 +0100
commitcfe7bf614b425671167a0b1e92418bfeb7b20bf4 (patch)
treed0314205091cc22441469172000678e52f41209b /engines/toon/script_func.cpp
parent10ba526812daf504c086adf3057bdab643d3a3fe (diff)
downloadscummvm-rg350-cfe7bf614b425671167a0b1e92418bfeb7b20bf4.tar.gz
scummvm-rg350-cfe7bf614b425671167a0b1e92418bfeb7b20bf4.tar.bz2
scummvm-rg350-cfe7bf614b425671167a0b1e92418bfeb7b20bf4.zip
TOON: Remove unecessary getSystem() function.
This was needed due to the unecessary protected shadow variable hiding the Engine superclass _system member variable.
Diffstat (limited to 'engines/toon/script_func.cpp')
-rw-r--r--engines/toon/script_func.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/toon/script_func.cpp b/engines/toon/script_func.cpp
index e9b7534198..1fa4058114 100644
--- a/engines/toon/script_func.cpp
+++ b/engines/toon/script_func.cpp
@@ -564,9 +564,9 @@ int32 ScriptFunc::sys_Cmd_Exit_Conversation(EMCState *state) {
int32 ScriptFunc::sys_Cmd_Set_Mouse_Pos(EMCState *state) {
if (_vm->state()->_inCloseUp) {
- _vm->getSystem()->warpMouse(stackPos(0), stackPos(1));
+ _vm->_system->warpMouse(stackPos(0), stackPos(1));
} else {
- _vm->getSystem()->warpMouse(stackPos(0) - _vm->state()->_currentScrollValue, stackPos(1));
+ _vm->_system->warpMouse(stackPos(0) - _vm->state()->_currentScrollValue, stackPos(1));
}
return 0;
}