add sounds for grenades; fix crash in -2

This commit is contained in:
Chris Forbes
2010-05-01 14:58:06 +12:00
parent 0c81356449
commit affd853a96
2 changed files with 3 additions and 1 deletions

View File

@@ -146,7 +146,7 @@ namespace OpenRA
public static bool IsVisible(this Actor a)
{
if (a.World.LocalPlayer.Shroud.Disabled)
if (a.World.LocalPlayer != null && a.World.LocalPlayer.Shroud.Disabled)
return true;
var shroud = a.World.WorldActor.traits.Get<Shroud>();

View File

@@ -191,6 +191,7 @@ Hellfire:
Grenade:
ROF: 60
Range: 4
Report: grenade1
Bullet:
Speed: 5
High: true
@@ -206,6 +207,7 @@ Grenade:
InfDeath: 2
SmudgeType: Crater
Damage: 50
ImpactSound: kaboom12
75mm:
ROF: 40