Hull, Gap & WayPoint cloning, equipped items are removed when switching from character mode to wiring or mode or vice versa

This commit is contained in:
Regalis
2016-11-12 15:44:02 +02:00
parent 0aa4b7a93d
commit d403b38440
5 changed files with 24 additions and 4 deletions

View File

@@ -114,6 +114,11 @@ namespace Barotrauma
InsertToList();
}
public override MapEntity Clone()
{
return new Gap(rect, isHorizontal, Submarine);
}
public override void Move(Vector2 amount)
{
base.Move(amount);
@@ -210,7 +215,7 @@ namespace Barotrauma
isHorizontal ? new Vector2(rect.Height / 16.0f, 1.0f) : new Vector2(rect.Width / 16.0f, 1.0f));
}
if (isSelected)
if (IsSelected)
{
GUI.DrawRectangle(sb,
new Vector2(WorldRect.X - 5, -WorldRect.Y - 5),