Faction Test v1.0.1.0

This commit is contained in:
Regalis11
2023-02-16 15:01:28 +02:00
parent caa5a2f762
commit 2c5a7923b0
309 changed files with 7502 additions and 4335 deletions
@@ -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