v0.1.2: Asynchronous master server connections, largefont, traitor mode ends when traitor dies or sub reaches end of level
This commit is contained in:
@@ -144,11 +144,11 @@ namespace Subsurface
|
||||
//PutItem(item, i, false, false);
|
||||
combined = true;
|
||||
}
|
||||
else if (items[i].Combine(item))
|
||||
{
|
||||
//PutItem(items[i], i, false, false);
|
||||
combined = true;
|
||||
}
|
||||
//else if (items[i].Combine(item))
|
||||
//{
|
||||
// //PutItem(items[i], i, false, false);
|
||||
// combined = true;
|
||||
//}
|
||||
|
||||
if (!combined) return false;
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace Subsurface.Items.Components
|
||||
foreach (Item contained in item.ContainedItems)
|
||||
{
|
||||
contained.Condition = 0.0f;
|
||||
if (contained.body!=null)
|
||||
if (contained.body != null)
|
||||
{
|
||||
contained.body.SetTransform(item.SimPosition, contained.body.Rotation);
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ namespace Subsurface
|
||||
get
|
||||
{
|
||||
ItemContainer c = GetComponent<ItemContainer>();
|
||||
return (c == null) ? null : c.inventory.items;
|
||||
return (c == null) ? null : Array.FindAll(c.inventory.items, i=>i!=null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user