Removed PF support on Character

This commit is contained in:
NotAlwaysTrue
2026-01-16 17:21:39 +08:00
parent e24024cbb2
commit 086f45510f
2 changed files with 3 additions and 16 deletions
@@ -3448,21 +3448,9 @@ namespace Barotrauma
characterUpdateTick++; characterUpdateTick++;
if (characterUpdateTick % CharacterUpdateInterval == 0) for (int i = 0; i < CharacterList.Count; i++)
{ {
for (int i = 0; i < CharacterList.Count; i++) CharacterList[i].Update(deltaTime , cam);
{
if (GameMain.LuaCs.Game.UpdatePriorityCharacters.Contains(CharacterList[i])) continue;
CharacterList[i].Update(deltaTime * CharacterUpdateInterval, cam);
}
}
foreach (Character character in GameMain.LuaCs.Game.UpdatePriorityCharacters)
{
if (character.Removed) { continue; }
Debug.Assert(character is { Removed: false });
character.Update(deltaTime, cam);
} }
#if CLIENT #if CLIENT
@@ -841,7 +841,6 @@ namespace Barotrauma
// Item update (Item.Update() is not thread-safe and must be executed on the main thread) // Item update (Item.Update() is not thread-safe and must be executed on the main thread)
Item.UpdatePendingConditionUpdates(deltaTime); Item.UpdatePendingConditionUpdates(deltaTime);
float scaledDeltaTime = deltaTime * MapEntityUpdateInterval;
Item lastUpdatedItem = null; Item lastUpdatedItem = null;
try try
@@ -852,7 +851,7 @@ namespace Barotrauma
try try
{ {
lastUpdatedItem = item; lastUpdatedItem = item;
item.Update(scaledDeltaTime, cam); item.Update(deltaTime, cam);
} }
finally finally
{ {