diff options
author | Nicola Mettifogo | 2007-10-14 21:32:43 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-10-14 21:32:43 +0000 |
commit | 963e63d985a7ffe9c1ae8907470c764202e947fc (patch) | |
tree | 2a0684b6fbe028ce629961975bd4f519e913eb01 /engines/parallaction/objects.cpp | |
parent | 652069f1a639cac69d5c4fd87149f1f068251c38 (diff) | |
download | scummvm-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.cpp | 6 |
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; |