Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)


15-09-2023, Drk84
Fixed: Ship plank not remaining open when turning the ship around. ( Issue #1089)
7 changes: 7 additions & 0 deletions src/game/components/CCMultiMovable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions src/game/items/CItemShip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down