People die when they are killed

This means that enemies can now kill the players without mercy.
This commit is contained in:
Niklas Ulf Anders Cullberg
2012-10-29 15:05:10 +01:00
parent ed0953ff50
commit 9ba26cae70
+5 -3
View File
@@ -147,7 +147,11 @@ namespace DepthsBelow
}
else
{
foreach (var entity in entityManager.Entities) {
GetComponent<PathFinder>().Stop();
}
foreach (var entity in entityManager.Entities)
{
if (entity is Soldier)
{
if (entity.GetComponent<Component.Collision>().Rectangle.Intersects(this.GetComponent<Component.Collision>().Rectangle))
@@ -159,8 +163,6 @@ namespace DepthsBelow
}
}
}
GetComponent<PathFinder>().Stop();
}
}
}