Skip to content

Commit

Permalink
TITANIC: Cleanup of title engine class
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 3, 2016
1 parent 3d0f922 commit be4ed6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions engines/titanic/true_talk/title_engine.cpp
Expand Up @@ -40,16 +40,14 @@ void CTitleEngine::setup(int val1, int val2) {

/*------------------------------------------------------------------------*/

STtitleEngine::STtitleEngine(): CTitleEngine(),
_responseP(nullptr), _field58(0) {
STtitleEngine::STtitleEngine(): CTitleEngine(), _responseP(nullptr) {
}

STtitleEngine::~STtitleEngine() {
delete _stream;
}

void STtitleEngine::reset() {
_field58 = 0;
_indexes.clear();
}

Expand All @@ -58,6 +56,7 @@ void STtitleEngine::setup(int val1, int val2) {
}

int STtitleEngine::setResponse(TTscriptBase *script, TTresponse *response) {
_responseP = response;
_indexes.clear();
for (TTresponse *respP = response; respP; respP = respP->getNext()) {
_indexes.push_back(respP->getDialogueId());
Expand Down
3 changes: 1 addition & 2 deletions engines/titanic/true_talk/title_engine.h
Expand Up @@ -67,8 +67,7 @@ class CTitleEngine {
class STtitleEngine : public CTitleEngine {
private:
Common::SeekableReadStream *_stream;
TTresponse *_responseP;
int _field58;
const TTresponse *_responseP;
public:
Common::Array<uint> _indexes;
Common::Array<byte> _data;
Expand Down

0 comments on commit be4ed6e

Please sign in to comment.