Bug fixes

This commit is contained in:
2021-04-24 23:31:43 +02:00
parent a7765e5355
commit 1265db9095
113 changed files with 346 additions and 120 deletions
+5
View File
@@ -53,6 +53,11 @@ namespace EvilSatellites.Objects
Move(Direction);
if (Vector3.Distance(StartPos, Position) > Range)
{
var scr = (GameScreen)Screen;
if (Owner == scr.GetPlayer())
{
Screen.Manager.Computer.Play("Void");
}
Destroy();
}
Sound.Position = new System.Numerics.Vector3(Position.X + Dimensions.X / 2, Position.Y + Dimensions.Y / 2, Position.Z + Dimensions.Z / 2);