From 963e63d985a7ffe9c1ae8907470c764202e947fc Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sun, 14 Oct 2007 21:32:43 +0000 Subject: Integrated low-level routines into the Script class, turning it into a self-contained parser for location, program and table scripts. svn-id: r29221 --- engines/parallaction/objects.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/parallaction/objects.cpp') 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; -- cgit v1.2.3