aboutsummaryrefslogtreecommitdiff
path: root/engines/m4
diff options
context:
space:
mode:
authorMax Horn2010-11-18 19:27:01 +0000
committerMax Horn2010-11-18 19:27:01 +0000
commitd6592aaba6198c21a8ae6eda9f8d6fc46d5b1557 (patch)
treec5e07dfa64fcb45fab865e00c0fc61db790e4ca6 /engines/m4
parent49468fdffff855f3cc5c77044776531381f3fe8f (diff)
downloadscummvm-rg350-d6592aaba6198c21a8ae6eda9f8d6fc46d5b1557.tar.gz
scummvm-rg350-d6592aaba6198c21a8ae6eda9f8d6fc46d5b1557.tar.bz2
scummvm-rg350-d6592aaba6198c21a8ae6eda9f8d6fc46d5b1557.zip
M4: Do not use Common::SubReadStream where ReadStream suffices
svn-id: r54342
Diffstat (limited to 'engines/m4')
-rw-r--r--engines/m4/converse.cpp4
-rw-r--r--engines/m4/converse.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/m4/converse.cpp b/engines/m4/converse.cpp
index 0e10e5e89d..1a0e2e8d3b 100644
--- a/engines/m4/converse.cpp
+++ b/engines/m4/converse.cpp
@@ -950,7 +950,7 @@ void Converse::loadConversationMads(const char *convName) {
for (j = 0; j < _convNodes[i]->entryCount; j++) {
debugCN(kDebugConversations, "*** Node %i entry %i data size %i\n", i, j, _convNodes[i]->entries[j]->size);
debugCN(kDebugConversations, "Entry ID %i, text %s\n", _convNodes[i]->entries[j]->id, _convNodes[i]->entries[j]->text);
- Common::SubReadStream *entryStream = new Common::SubReadStream(convS, _convNodes[i]->entries[j]->size);
+ Common::ReadStream *entryStream = new Common::SubReadStream(convS, _convNodes[i]->entries[j]->size);
readConvEntryActions(entryStream, _convNodes[i]->entries[j]);
delete entryStream;
debugCN(kDebugConversations, "--------------------\n");
@@ -960,7 +960,7 @@ void Converse::loadConversationMads(const char *convName) {
delete convS;
}
-void Converse::readConvEntryActions(Common::SubReadStream *convS, ConvEntry *curEntry) {
+void Converse::readConvEntryActions(Common::ReadStream *convS, ConvEntry *curEntry) {
uint8 chunk;
uint8 type; // 255: normal, 11: conditional
uint8 hasText1, hasText2;
diff --git a/engines/m4/converse.h b/engines/m4/converse.h
index 609711b10f..67ecf20424 100644
--- a/engines/m4/converse.h
+++ b/engines/m4/converse.h
@@ -191,7 +191,7 @@ private:
void loadConversation(const char *convName);
void loadConversationMads(const char *convName);
- void readConvEntryActions(Common::SubReadStream *convS, ConvEntry *curEntry);
+ void readConvEntryActions(Common::ReadStream *convS, ConvEntry *curEntry);
void setEntryInfo(int32 offset, EntryType type, int32 nodeIndex, int32 entryIndex);
};