aboutsummaryrefslogtreecommitdiff
path: root/engines/made/script.cpp
diff options
context:
space:
mode:
authorBenjamin Haisch2008-05-14 11:19:31 +0000
committerBenjamin Haisch2008-05-14 11:19:31 +0000
commit4a0b936495dfc17a4c22b9261c0c02b862454b77 (patch)
tree9bfa0cc2b9f175eaee9d48f7b60ca0adb8057ae5 /engines/made/script.cpp
parent0ec51de2721d7b670c997b7a3d1bc53f432d6e6b (diff)
downloadscummvm-rg350-4a0b936495dfc17a4c22b9261c0c02b862454b77.tar.gz
scummvm-rg350-4a0b936495dfc17a4c22b9261c0c02b862454b77.tar.bz2
scummvm-rg350-4a0b936495dfc17a4c22b9261c0c02b862454b77.zip
Merged the three ScriptFunctionsXXX classes into ScriptFunctions
svn-id: r32105
Diffstat (limited to 'engines/made/script.cpp')
-rw-r--r--engines/made/script.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/engines/made/script.cpp b/engines/made/script.cpp
index ad1411281c..8b5a48cdd7 100644
--- a/engines/made/script.cpp
+++ b/engines/made/script.cpp
@@ -172,15 +172,7 @@ ScriptInterpreter::ScriptInterpreter(MadeEngine *vm) : _vm(vm) {
_commands = commandProcs;
_commandsMax = ARRAYSIZE(commandProcs) + 1;
- if (_vm->getGameID() == GID_RTZ)
- _functions = new ScriptFunctionsRtz(_vm);
- else if (_vm->getGameID() == GID_LGOP2)
- _functions = new ScriptFunctionsLgop2(_vm);
- else if (_vm->getGameID() == GID_MANHOLE)
- _functions = new ScriptFunctionsMhne(_vm);
- else
- error("Unsupported GameID");
-
+ _functions = new ScriptFunctions(_vm);
_functions->setupExternalsTable();
#undef COMMAND