aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-11 18:30:24 -0400
committerPaul Gilbert2016-08-11 18:30:24 -0400
commite8ea243a1468168d78d4c2d61f5d22a7421f8f2e (patch)
tree2723358c6cb6a6a75d7ac77a9882434c4ecc8c2b /engines/titanic/core
parent22408230ec9e82665a80fd4476a9f2747ffaff0e (diff)
downloadscummvm-rg350-e8ea243a1468168d78d4c2d61f5d22a7421f8f2e.tar.gz
scummvm-rg350-e8ea243a1468168d78d4c2d61f5d22a7421f8f2e.tar.bz2
scummvm-rg350-e8ea243a1468168d78d4c2d61f5d22a7421f8f2e.zip
TITANIC: Set up positioning mode in sound manager & CProximity
Diffstat (limited to 'engines/titanic/core')
-rw-r--r--engines/titanic/core/game_object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp
index 67b7920f04..0661f25478 100644
--- a/engines/titanic/core/game_object.cpp
+++ b/engines/titanic/core/game_object.cpp
@@ -726,7 +726,7 @@ int CGameObject::playSound(const CString &name, uint volume, int val3, bool repe
}
int CGameObject::playSound(const CString &name, CProximity &prox) {
- if (prox._field28 == 2) {
+ if (prox._positioningMode == POSMODE_VECTOR) {
// If the proximity doesn't have a position defined, default it to
// the position of the view to which the game object belongs
if (prox._posX == 0.0 && prox._posY == 0.0 && prox._posZ == 0.0)