summaryrefslogtreecommitdiffstats
path: root/src/control/Bridge.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-02 17:02:45 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-02 17:02:45 +0200
commit7d067684ff4c69ecaf911ca23b478087f5655437 (patch)
treea47fbbaf7937616d80e799f3a9157d933c1f69c0 /src/control/Bridge.cpp
parentchanged saving compatibility (diff)
parentA bit more audio cleanup (diff)
downloadre3-7d067684ff4c69ecaf911ca23b478087f5655437.tar
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.gz
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.bz2
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.lz
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.xz
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.zst
re3-7d067684ff4c69ecaf911ca23b478087f5655437.zip
Diffstat (limited to 'src/control/Bridge.cpp')
-rw-r--r--src/control/Bridge.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Bridge.cpp b/src/control/Bridge.cpp
index 8514ef9e..98c74bbe 100644
--- a/src/control/Bridge.cpp
+++ b/src/control/Bridge.cpp
@@ -93,16 +93,16 @@ void CBridge::Update()
// Move bridge part
if (liftHeight != OldLift)
{
- pLiftPart->GetPosition().z = DefaultZLiftPart + liftHeight;
+ pLiftPart->GetMatrix().GetPosition().z = DefaultZLiftPart + liftHeight;
pLiftPart->GetMatrix().UpdateRW();
pLiftPart->UpdateRwFrame();
if (pLiftRoad)
{
- pLiftRoad->GetPosition().z = DefaultZLiftRoad + liftHeight;
+ pLiftRoad->GetMatrix().GetPosition().z = DefaultZLiftRoad + liftHeight;
pLiftRoad->GetMatrix().UpdateRW();
pLiftRoad->UpdateRwFrame();
}
- pWeight->GetPosition().z = DefaultZLiftWeight - liftHeight;
+ pWeight->GetMatrix().GetPosition().z = DefaultZLiftWeight - liftHeight;
pWeight->GetMatrix().UpdateRW();
pWeight->UpdateRwFrame();