diff options
author | Vladimir Menshakov | 2009-09-06 09:43:06 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-09-06 09:43:06 +0000 |
commit | 0d4cbea620bca445fd911af16da1669b3009080f (patch) | |
tree | 7018b2227ed80cc2bf2243a318bb0aea6b7b434d | |
parent | 05201a2e9c2b69788e936dd39f829dbe57e78839 (diff) | |
download | scummvm-rg350-0d4cbea620bca445fd911af16da1669b3009080f.tar.gz scummvm-rg350-0d4cbea620bca445fd911af16da1669b3009080f.tar.bz2 scummvm-rg350-0d4cbea620bca445fd911af16da1669b3009080f.zip |
start sound positioning with 1 as in original engine.
svn-id: r43973
-rw-r--r-- | engines/teenagent/teenagent.cpp | 2 | ||||
-rw-r--r-- | engines/teenagent/teenagent.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index c49eaa93e5..909d69f6f6 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -431,6 +431,8 @@ void TeenAgentEngine::playMusic(byte id) { } void TeenAgentEngine::playSound(byte id, byte skip_frames) { + if (skip_frames > 0) + --skip_frames; SceneEvent event(SceneEvent::PlaySound); event.sound = id; event.color = skip_frames; diff --git a/engines/teenagent/teenagent.h b/engines/teenagent/teenagent.h index 8e7354f995..9728cbb002 100644 --- a/engines/teenagent/teenagent.h +++ b/engines/teenagent/teenagent.h @@ -80,7 +80,7 @@ public: void rejectMessage(); void playMusic(byte id); //schedules play - void playSound(byte id, byte skip_frames = 0); + void playSound(byte id, byte skip_frames = 1); void playSoundNow(byte id); void enableObject(byte id, byte scene_id = 0); void disableObject(byte id, byte scene_id = 0); |