aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parser.cpp
diff options
context:
space:
mode:
authorChristopher Page2008-06-02 21:08:49 +0000
committerChristopher Page2008-06-02 21:08:49 +0000
commita338d5fdb2715a7b29ae789c632a0cfa05803079 (patch)
treeb80b3e278050d5027dddd2723cf60b5108893f08 /engines/parallaction/parser.cpp
parent203f62ad7cfc3f931c98c8fc3ecdbb01924b896f (diff)
downloadscummvm-rg350-a338d5fdb2715a7b29ae789c632a0cfa05803079.tar.gz
scummvm-rg350-a338d5fdb2715a7b29ae789c632a0cfa05803079.tar.bz2
scummvm-rg350-a338d5fdb2715a7b29ae789c632a0cfa05803079.zip
PARA: Got rid of calls to system->quit() so that the Parallaction engine can return to the launcher. Also fixed a couple of memory leaks.
svn-id: r32504
Diffstat (limited to 'engines/parallaction/parser.cpp')
-rw-r--r--engines/parallaction/parser.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/parallaction/parser.cpp b/engines/parallaction/parser.cpp
index f9de6eb4af..c166c8fe3a 100644
--- a/engines/parallaction/parser.cpp
+++ b/engines/parallaction/parser.cpp
@@ -31,6 +31,8 @@ namespace Parallaction {
char _tokens[20][MAX_TOKEN_LEN];
Script::Script(Common::ReadStream *input, bool disposeSource) : _input(input), _disposeSource(disposeSource), _line(0) {
+
+// clearAllTokens();
}
Script::~Script() {
@@ -73,6 +75,17 @@ void Script::clearTokens() {
}
+/*
+void Script::clearAllTokens() {
+
+ for (uint16 i = 0; i < 20; i++)
+ for (uint16 j = 0; j < 50; j++)
+ _tokens[i][j] = '\0';
+
+ return;
+}
+*/
+
void Script::skip(const char* endToken) {
while (scumm_stricmp(_tokens[0], endToken)) {