aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/objects.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-10-14 21:32:43 +0000
committerNicola Mettifogo2007-10-14 21:32:43 +0000
commit963e63d985a7ffe9c1ae8907470c764202e947fc (patch)
tree2a0684b6fbe028ce629961975bd4f519e913eb01 /engines/parallaction/objects.cpp
parent652069f1a639cac69d5c4fd87149f1f068251c38 (diff)
downloadscummvm-rg350-963e63d985a7ffe9c1ae8907470c764202e947fc.tar.gz
scummvm-rg350-963e63d985a7ffe9c1ae8907470c764202e947fc.tar.bz2
scummvm-rg350-963e63d985a7ffe9c1ae8907470c764202e947fc.zip
Integrated low-level routines into the Script class, turning it into a self-contained parser for location, program and table scripts.
svn-id: r29221
Diffstat (limited to 'engines/parallaction/objects.cpp')
-rw-r--r--engines/parallaction/objects.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/parallaction/objects.cpp b/engines/parallaction/objects.cpp
index 1a36bcd5f7..20f7469457 100644
--- a/engines/parallaction/objects.cpp
+++ b/engines/parallaction/objects.cpp
@@ -399,10 +399,12 @@ Table* createTableFromStream(uint32 size, Common::SeekableReadStream &stream) {
Table *t = new Table(size);
- fillBuffers(stream);
+ Script s(&stream, false);
+
+ s.readLineToken();
while (scumm_stricmp(_tokens[0], "ENDTABLE")) {
t->addData(_tokens[0]);
- fillBuffers(stream);
+ s.readLineToken();
}
return t;