summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-27 00:46:48 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-27 00:46:48 +0200
commitfcfdaa9534c67bc0affee73af80b12ffc82dfd05 (patch)
tree1009d915cbc9d166177cc218afc116761cc55ae1 /src/audio
parentRevert m_alphaEntityList capacity (diff)
downloadre3-fcfdaa9534c67bc0affee73af80b12ffc82dfd05.tar
re3-fcfdaa9534c67bc0affee73af80b12ffc82dfd05.tar.gz
re3-fcfdaa9534c67bc0affee73af80b12ffc82dfd05.tar.bz2
re3-fcfdaa9534c67bc0affee73af80b12ffc82dfd05.tar.lz
re3-fcfdaa9534c67bc0affee73af80b12ffc82dfd05.tar.xz
re3-fcfdaa9534c67bc0affee73af80b12ffc82dfd05.tar.zst
re3-fcfdaa9534c67bc0affee73af80b12ffc82dfd05.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioManager.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index e3ae9068..f8d42aec 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -9109,18 +9109,9 @@ cAudioManager::Terminate()
}
void
-cAudioManager::TranslateEntity(CVector *v1, CVector *v2) const
+cAudioManager::TranslateEntity(CVector *in, CVector *out) const
{
- const RwMatrix &cM = TheCamera.GetMatrix().m_matrix;
- const CVector &cV = TheCamera.GetPosition();
-
- float a = v1->z - cV.z;
- float b = v1->y - cV.y;
- float c = v1->x - cV.x;
-
- v2->x = cM.right.y * b + cM.right.x * c + cM.right.z * a;
- v2->y = cM.up.y * b + cM.up.x * c + cM.up.z * a;
- v2->z = cM.at.y * b + cM.at.x * c + cM.at.z * a;
+ *out = MultiplyInverse(TheCamera.GetMatrix(), *in);
}
void