From 290ea5dfa272a8139440db8aca4839c35e759bae Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 21 Jan 2015 07:54:11 +0100 Subject: ACCESS: MM - Implement loading of cells00 in intro, some renaming --- engines/access/martian/martian_game.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'engines/access') diff --git a/engines/access/martian/martian_game.cpp b/engines/access/martian/martian_game.cpp index 3ad9b65e24..07d093960b 100644 --- a/engines/access/martian/martian_game.cpp +++ b/engines/access/martian/martian_game.cpp @@ -133,15 +133,19 @@ void MartianEngine::doSpecial5(int param1) { _events->showCursor(); _screen->setIconPalette(); _screen->forceFadeIn(); - warning("TODO: LoadCells"); + + Resource *cellsRes = _files->loadFile("CELLS00.LZ"); + _objectsTable[0] = new SpriteResource(this, cellsRes); + delete cellsRes; + _timers[20]._timer = _timers[20]._initTm = 30; - Resource *_notesRes = _files->loadFile("NOTES.DAT"); - _notesRes->_stream->skip(param1 * 2); - int pos = _notesRes->_stream->readUint16LE(); - _notesRes->_stream->seek(pos); + Resource *notesRes = _files->loadFile("NOTES.DAT"); + notesRes->_stream->skip(param1 * 2); + int pos = notesRes->_stream->readUint16LE(); + notesRes->_stream->seek(pos); Common::String msg = ""; byte c; - while ((c = (char)_notesRes->_stream->readByte()) != '\0') + while ((c = (char)notesRes->_stream->readByte()) != '\0') msg += c; displayNote(msg); -- cgit v1.2.3