diff --git a/Changelog.txt b/Changelog.txt index 2a1f7f306..a49628f40 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -3338,6 +3338,8 @@ Additionally, the problem of zig-zag issue following in the South direction has -Fixed: Sphere.ini setting ManaLossPercent not consuming mana unless set to 100. (Issue #1096) Remember that the mana lost depends from the spell Mana base cost and eventually the LowerManaCost property if set. -14-04-2023, Drk84 +14-09-2023, Drk84 -Fixed: Using ATTACKER.TARGET on a fighting NPC will return always -1. (Issue #1098) - \ No newline at end of file + +15-09-2023, Drk84 +Fixed: Ship plank not remaining open when turning the ship around. ( Issue #1089) \ No newline at end of file diff --git a/src/game/components/CCMultiMovable.cpp b/src/game/components/CCMultiMovable.cpp index b6f0dfb3f..4897a2e6f 100644 --- a/src/game/components/CCMultiMovable.cpp +++ b/src/game/components/CCMultiMovable.cpp @@ -604,6 +604,13 @@ bool CCMultiMovable::Face(DIR_TYPE dir) IT_TYPE oldType = pItem->GetType(); pItem->SetID(componentnew.m_id); pItem->SetType(oldType); + if ( oldType == IT_SHIP_PLANK && pItem->m_itShipPlank.m_wSideType == IT_SHIP_SIDE_LOCKED) + { + pItem->SetID((ITEMID_TYPE)pItem->Item_GetDef()->m_ttShipPlank.m_ridState.GetResIndex()); + pItem->SetType(IT_SHIP_PLANK); + + } + pt.m_x = pMultiThis->GetTopPoint().m_x + componentnew.m_dx; pt.m_y = pMultiThis->GetTopPoint().m_y + componentnew.m_dy; } diff --git a/src/game/items/CItemShip.cpp b/src/game/items/CItemShip.cpp index 9c3263dbb..72b41013d 100644 --- a/src/game/items/CItemShip.cpp +++ b/src/game/items/CItemShip.cpp @@ -53,6 +53,9 @@ bool CItem::Ship_Plank(bool fOpen) { // Save the original Type of the plank if it used to be a ship side m_itShipPlank.m_wSideType = (word)oldType; + + SetTimeoutS(5); // autoclose the plank + SetAttr(ATTR_DECAY); // For preventing Decay Warning on the console. } else if (oldType == IT_SHIP_PLANK) {