Faction Test v1.0.1.0
This commit is contained in:
@@ -141,7 +141,18 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
if (items.Contains(item)) { return; }
|
||||
items.Add(item);
|
||||
|
||||
//keep lowest-condition items at the top of the stack
|
||||
int index = 0;
|
||||
for (int i = 0; i < items.Count; i++)
|
||||
{
|
||||
if (items[i].Condition > item.Condition)
|
||||
{
|
||||
break;
|
||||
}
|
||||
index++;
|
||||
}
|
||||
items.Insert(index, item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -585,6 +596,8 @@ namespace Barotrauma
|
||||
item.body.Enabled = false;
|
||||
item.body.BodyType = FarseerPhysics.BodyType.Dynamic;
|
||||
item.SetTransform(item.SimPosition, rotation: 0.0f, findNewHull: false);
|
||||
//update to refresh the interpolated draw rotation and position (update doesn't run on disabled bodies)
|
||||
item.body.Update();
|
||||
}
|
||||
|
||||
#if SERVER
|
||||
|
||||
Reference in New Issue
Block a user