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
+8
View File
@@ -96,6 +96,14 @@ namespace EvilSatellites.Weapons
Projectile proj = new Projectile(Screen, _wielder.Position, _wielder.Rotation, _wielder);
Screen.AddObject(proj);
GameStats.ShotsFired++;
var scr = (EvilSatellites.Screens.GameScreen)Screen;
if (scr.ObjectRadar.RadarPitch < 0.8)
{
scr.Manager.Computer.Play("FarMiss");
} else if (scr.ObjectRadar.RadarPitch < 1)
{
scr.Manager.Computer.Play("NearMiss");
}
} else
{
sfxEmpty.Reset();