From a622737b2be9495d264091d7632af4987bfbfcfd Mon Sep 17 00:00:00 2001 From: Coruja Date: Mon, 13 Jun 2016 17:58:50 -0300 Subject: [PATCH] Fixed: Boat/ship parts resetting TYPE after use 'turn' commands. --- docs/REVISIONS-56-SERIES.TXT | 5 ++++- src/graysvr/CItemShip.cpp | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/REVISIONS-56-SERIES.TXT b/docs/REVISIONS-56-SERIES.TXT index 022be91aa..36a7d9c46 100644 --- a/docs/REVISIONS-56-SERIES.TXT +++ b/docs/REVISIONS-56-SERIES.TXT @@ -76,4 +76,7 @@ Fixed: Incognito spell considering char notoriety neutral/not-neutral on differe Added: Missing features on Incognito spell -It will change char name to a random human male/female name instead always use Man/Woman. -It will change char body/hair/beard to a random color temporarily. - -It won't hide guild abbreviation anymore (the player can choose hide/show it using guild menu). \ No newline at end of file + -It won't hide guild abbreviation anymore (the player can choose hide/show it using guild menu). + +13-06-2016, Coruja +Fixed: Boat/ship parts resetting TYPE after use 'turn' commands. \ No newline at end of file diff --git a/src/graysvr/CItemShip.cpp b/src/graysvr/CItemShip.cpp index 31bb2390f..0f948448f 100644 --- a/src/graysvr/CItemShip.cpp +++ b/src/graysvr/CItemShip.cpp @@ -413,7 +413,9 @@ bool CItemShip::Ship_Face( DIR_TYPE dir ) if ((xdiff == component.m_dx) && (ydiff == component.m_dy) && ((pItem->GetTopZ()-GetTopZ()) == component.m_dz)) { const CItemBaseMulti::CMultiComponentItem & componentnew = pMultiNew->m_Components.ElementAt(j); + IT_TYPE oldType = pItem->GetType(); pItem->SetID(componentnew.m_id); + pItem->SetType(oldType); pt.m_x = GetTopPoint().m_x + componentnew.m_dx; pt.m_y = GetTopPoint().m_y + componentnew.m_dy; }