Attachable items aren't automatically attached when loading a sub in edit screen, bunch of new item sprites, Aegir Mark II, client reconnect bugfixes

This commit is contained in:
Regalis
2015-09-27 15:46:55 +03:00
parent da00b083ed
commit c8ee9e085f
30 changed files with 249 additions and 149 deletions
@@ -66,12 +66,14 @@ namespace Subsurface
protected override void DropItem(Item item)
{
bool enabled = draggingItem.body.Enabled;
if (item.body == null) return;
bool enabled = item.body.Enabled;
item.Drop(character);
if (!enabled)
{
draggingItem.body.SetTransform(character.SimPosition, 0.0f);
item.SetTransform(character.SimPosition, 0.0f);
}
}