From 7c83f5f09a2c78d6e5a851e53978cbfac001c297 Mon Sep 17 00:00:00 2001 From: DavideRei <118212274+DavideRei@users.noreply.github.com> Date: Sat, 21 Sep 2024 13:09:36 +0300 Subject: [PATCH] Fix ship turn for custom ship with custom z components (#1288) --- src/game/components/CCMultiMovable.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/components/CCMultiMovable.cpp b/src/game/components/CCMultiMovable.cpp index b35062310..53666a36b 100644 --- a/src/game/components/CCMultiMovable.cpp +++ b/src/game/components/CCMultiMovable.cpp @@ -617,6 +617,7 @@ bool CCMultiMovable::Face(DIR_TYPE dir) pt.m_x = pMultiThis->GetTopPoint().m_x + componentnew.m_dx; pt.m_y = pMultiThis->GetTopPoint().m_y + componentnew.m_dy; + pt.m_z = pMultiThis->GetTopPoint().m_z + componentnew.m_dz; } } }