aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_sound.cpp
diff options
context:
space:
mode:
authorwhitertandrek2018-03-22 14:51:13 +0200
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit8874ccb9de1936c7fc1ae83bccd3d85344617285 (patch)
treed32e7c02bbdaebb73d4bbf29eb0b6ec3a82661cc /engines/pink/objects/actions/action_sound.cpp
parenteb6ce676e4e604f510cbf3f4d651c18911f4468f (diff)
downloadscummvm-rg350-8874ccb9de1936c7fc1ae83bccd3d85344617285.tar.gz
scummvm-rg350-8874ccb9de1936c7fc1ae83bccd3d85344617285.tar.bz2
scummvm-rg350-8874ccb9de1936c7fc1ae83bccd3d85344617285.zip
PINK: added debug information to actions
Diffstat (limited to 'engines/pink/objects/actions/action_sound.cpp')
-rw-r--r--engines/pink/objects/actions/action_sound.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/pink/objects/actions/action_sound.cpp b/engines/pink/objects/actions/action_sound.cpp
index f389f97a1a..38f8687d33 100644
--- a/engines/pink/objects/actions/action_sound.cpp
+++ b/engines/pink/objects/actions/action_sound.cpp
@@ -56,9 +56,12 @@ void ActionSound::start(bool unk) {
_sound->play(soundType, _volume, _isLoop);
if (_isLoop)
_actor->endAction();
+
+ debug("Actor %s has now ActionSound %s", _actor->getName().c_str(), _name.c_str());
}
void ActionSound::end() {
+ debug("ActionSound %s of Actor %s is ended", _name.c_str(), _actor->getName().c_str());
_sound->stop();
delete _sound;
_sound = nullptr;