diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 03:45:18 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 03:45:18 +0200 |
commit | 84c9484e55874c57c1c017cb2394e0c6b2f32303 (patch) | |
tree | bcd2cbc38055ee38aa1aa2b35dd46d0f5e2e0772 /src/core/Placeable.cpp | |
parent | Merge pull request #508 from Nick007J/master (diff) | |
download | re3-84c9484e55874c57c1c017cb2394e0c6b2f32303.tar re3-84c9484e55874c57c1c017cb2394e0c6b2f32303.tar.gz re3-84c9484e55874c57c1c017cb2394e0c6b2f32303.tar.bz2 re3-84c9484e55874c57c1c017cb2394e0c6b2f32303.tar.lz re3-84c9484e55874c57c1c017cb2394e0c6b2f32303.tar.xz re3-84c9484e55874c57c1c017cb2394e0c6b2f32303.tar.zst re3-84c9484e55874c57c1c017cb2394e0c6b2f32303.zip |
Diffstat (limited to 'src/core/Placeable.cpp')
-rw-r--r-- | src/core/Placeable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Placeable.cpp b/src/core/Placeable.cpp index 99ca5659..69b3d3ea 100644 --- a/src/core/Placeable.cpp +++ b/src/core/Placeable.cpp @@ -12,9 +12,9 @@ CPlaceable::~CPlaceable(void) = default; void CPlaceable::SetHeading(float angle) { - CVector pos = GetPosition(); + CVector pos = GetMatrix().GetPosition(); m_matrix.SetRotateZ(angle); - GetPosition() += pos; + GetMatrix().Translate(pos); } bool |