Skip to content

Commit

Permalink
Fix orientation of KeepItems
Browse files Browse the repository at this point in the history
  • Loading branch information
NetDwarf committed Jan 13, 2024
1 parent ec021ed commit 7fc0413
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GameServer/keeps/Managers/Position Manager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ public static void LoadGuardPosition(DBKeepPosition pos, GameKeepGuard guard)
public static void LoadKeepItemPosition(DBKeepPosition pos, IKeepItem item)
{
var keepPositionOffset = Vector.Create(pos.XOff, -pos.YOff, pos.ZOff).RotatedClockwise(item.Component.Orientation);
item.Position = (item.Component.Position + keepPositionOffset).With(item.Component.Orientation);
var orientation = item.Component.Orientation + Angle.Heading(pos.HOff);
item.Position = (item.Component.Position + keepPositionOffset).With(orientation);
item.DbKeepPosition = pos;
}

Expand Down

0 comments on commit 7fc0413

Please sign in to comment.