aboutsummaryrefslogtreecommitdiff
path: root/engines/queen/graphics.cpp
diff options
context:
space:
mode:
authorGregory Montoir2006-11-24 18:37:43 +0000
committerGregory Montoir2006-11-24 18:37:43 +0000
commit28be8164ac396417602594b3362f0b1d04a195a4 (patch)
tree30f6b07354f2832d3d0465d0b6a25f0d5dc5f449 /engines/queen/graphics.cpp
parentd4f61e6ee91bc705fd781f0b5c2a7f9e55af80e4 (diff)
downloadscummvm-rg350-28be8164ac396417602594b3362f0b1d04a195a4.tar.gz
scummvm-rg350-28be8164ac396417602594b3362f0b1d04a195a4.tar.bz2
scummvm-rg350-28be8164ac396417602594b3362f0b1d04a195a4.zip
simplification, removed some duplicated code
svn-id: r24783
Diffstat (limited to 'engines/queen/graphics.cpp')
-rw-r--r--engines/queen/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/queen/graphics.cpp b/engines/queen/graphics.cpp
index 11ae2d1e27..60be8f86cc 100644
--- a/engines/queen/graphics.cpp
+++ b/engines/queen/graphics.cpp
@@ -380,7 +380,7 @@ void Graphics::sortBobs() {
if (pbs->animating) {
pbs->animOneStep();
if (pbs->frameNum > 500) { // SFX frame
- _vm->sound()->playSfx(_vm->logic()->currentRoomSfx(), false);
+ _vm->sound()->playSfx(_vm->logic()->currentRoomSfx());
pbs->frameNum -= 500;
}
}
@@ -1125,7 +1125,7 @@ void BamScene::playSfx() {
// this problem since its playSfx() function returns immediately
// if a sound is already being played.
if (_lastSoundIndex == 0 || _index - _lastSoundIndex >= SFX_SKIP) {
- _vm->sound()->playSfx(_vm->logic()->currentRoomSfx(), false);
+ _vm->sound()->playSfx(_vm->logic()->currentRoomSfx());
_lastSoundIndex = _index;
}
}