Skip to content

Commit

Permalink
TITANIC: Cleanup calls to playMovie
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Nov 2, 2016
1 parent 4a90553 commit 566742d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion engines/titanic/core/background.cpp
Expand Up @@ -58,7 +58,7 @@ void CBackground::load(SimpleFile *file) {
bool CBackground::StatusChangeMsg(CStatusChangeMsg *msg) {
setVisible(true);
if (_fieldDC) {
playMovie(_startFrame, _endFrame, 16);
playMovie(_startFrame, _endFrame, MOVIE_GAMESTATE);
} else {
playMovie(_startFrame, _endFrame, 0);
}
Expand Down
2 changes: 1 addition & 1 deletion engines/titanic/game/computer.cpp
Expand Up @@ -54,7 +54,7 @@ bool CComputer::ActMsg(CActMsg *msg) {
else if (msg->_action == "CD2")
playMovie(50, 79, 0);
else if (msg->_action == "STCD")
playMovie(80, 90, 4);
playMovie(80, 90, MOVIE_NOTIFY_OBJECT);

_currentCD = msg->_action;
_state = 0;
Expand Down
2 changes: 1 addition & 1 deletion engines/titanic/pet_control/pet_inventory.cpp
Expand Up @@ -242,7 +242,7 @@ void CPetInventory::playMovie(CGameObject *movie, int flag) {

if (_movie) {
if (flag)
_movie->playMovie(0, 14, 1);
_movie->playMovie(0, 14, MOVIE_REPEAT);
else
_movie->playMovie(0);
}
Expand Down
6 changes: 3 additions & 3 deletions engines/titanic/pet_control/pet_inventory_glyphs.cpp
Expand Up @@ -295,23 +295,23 @@ void CPetInventoryGlyph::startBackgroundMovie() {
if (_owner) {
CPetInventory *section = dynamic_cast<CPetInventory *>(_owner->getOwner());
if (section)
section->playMovie(_background, 1);
section->playMovie(_background, MOVIE_REPEAT);
}
}

void CPetInventoryGlyph::startForegroundMovie() {
if (_owner) {
CPetInventory *section = dynamic_cast<CPetInventory *>(_owner->getOwner());
if (section)
section->playMovie(_image, 1);
section->playMovie(_image, MOVIE_REPEAT);
}
}

void CPetInventoryGlyph::stopMovie() {
if (_owner) {
CPetInventory *section = dynamic_cast<CPetInventory *>(_owner->getOwner());
if (section)
section->playMovie(nullptr, 1);
section->playMovie(nullptr, MOVIE_REPEAT);
}
}

Expand Down

0 comments on commit 566742d

Please sign in to comment.