Character death syncing, characters don't reselect items when they receive a network msg about an item they have already selected

This commit is contained in:
Regalis
2017-01-06 17:43:18 +02:00
parent beac45458e
commit 80e743916a
2 changed files with 65 additions and 35 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ namespace Barotrauma
AnimController.SimplePhysicsEnabled = false;
}
if (isDead || Health <= 0.0f) return;
if (IsDead || Health <= 0.0f) return;
if (Controlled == this || !aiController.Enabled) return;
@@ -76,7 +76,7 @@ namespace Barotrauma
{
base.DrawFront(spriteBatch,cam);
if (GameMain.DebugDraw && !isDead) aiController.DebugDraw(spriteBatch);
if (GameMain.DebugDraw && !IsDead) aiController.DebugDraw(spriteBatch);
}
public override void AddDamage(CauseOfDeath causeOfDeath, float amount, IDamageable attacker)