aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorStrangerke2015-01-21 07:54:11 +0100
committerStrangerke2015-01-21 07:54:11 +0100
commit290ea5dfa272a8139440db8aca4839c35e759bae (patch)
tree5cb05233c285ca58443fd500ada261a879ee6be8 /engines/access
parentd7f37d213c37a8f0f92ac672a49fc77333b1036b (diff)
downloadscummvm-rg350-290ea5dfa272a8139440db8aca4839c35e759bae.tar.gz
scummvm-rg350-290ea5dfa272a8139440db8aca4839c35e759bae.tar.bz2
scummvm-rg350-290ea5dfa272a8139440db8aca4839c35e759bae.zip
ACCESS: MM - Implement loading of cells00 in intro, some renaming
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/martian/martian_game.cpp16
1 files changed, 10 insertions, 6 deletions
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);