diff options
Diffstat (limited to 'engines/titanic/core')
-rw-r--r-- | engines/titanic/core/game_object.cpp | 4 | ||||
-rw-r--r-- | engines/titanic/core/game_object.h | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index 30366398c1..d7556c76ff 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -425,11 +425,11 @@ void CGameObject::makeDirty() { makeDirty(_bounds); } -bool CGameObject::soundFn1(int handle) { +bool CGameObject::isSoundActive(int handle) const { if (handle != 0 && handle != -1) { CGameManager *gameManager = getGameManager(); if (gameManager) - return gameManager->_sound.fn1(handle); + return gameManager->_sound.isActive(handle); } return false; diff --git a/engines/titanic/core/game_object.h b/engines/titanic/core/game_object.h index ec7f77cff6..ecef68ce70 100644 --- a/engines/titanic/core/game_object.h +++ b/engines/titanic/core/game_object.h @@ -195,7 +195,10 @@ protected: */ void stopSound(int handle, int val2 = 0); - bool soundFn1(int handle); + /** + * Returns true if a sound with the specified handle is active + */ + bool isSoundActive(int handle) const; void soundFn2(const CString &resName, int v1, int v2, int v3, int handleIndex); |