aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound/sound.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-09 22:16:17 -0400
committerPaul Gilbert2016-08-09 22:16:17 -0400
commit17a665e2aab9466d7362168ded8d870986120eca (patch)
treeaaccb3962a51c4676d39b6e3e97e612bde7918d5 /engines/titanic/sound/sound.cpp
parent668c486f4fdf270a88cfd799ba54871d5a314383 (diff)
downloadscummvm-rg350-17a665e2aab9466d7362168ded8d870986120eca.tar.gz
scummvm-rg350-17a665e2aab9466d7362168ded8d870986120eca.tar.bz2
scummvm-rg350-17a665e2aab9466d7362168ded8d870986120eca.zip
TITANIC: Field renaming and warning fixes in sound code
Diffstat (limited to 'engines/titanic/sound/sound.cpp')
-rw-r--r--engines/titanic/sound/sound.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/engines/titanic/sound/sound.cpp b/engines/titanic/sound/sound.cpp
index d86262ae23..d14c628a78 100644
--- a/engines/titanic/sound/sound.cpp
+++ b/engines/titanic/sound/sound.cpp
@@ -48,16 +48,12 @@ void CSound::preLoad() {
void CSound::preEnterView(CViewItem *newView, bool isNewRoom) {
CNodeItem *node = newView->findNode();
- CRoomItem *room = node->findRoom();
double xp, yp, zp;
node->getPosition(xp, yp, zp);
double cosVal = cos(newView->_angle);
double sinVal = -sin(newView->_angle);
- // WORKAROUND: The original does a weird call below, doing the room's
- // (width + height) / 2 and passing it in the isNewRoom field, along with
- // two extra unused parameters that aren't used
_soundManager.setListenerPosition(xp, yp, zp, cosVal, sinVal, 0, isNewRoom);
}