Skip to content

Commit

Permalink
add sounds for grenades; fix crash in -2
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisforbes committed May 1, 2010
1 parent 0c81356 commit affd853
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Game/WorldUtils.cs
Expand Up @@ -146,7 +146,7 @@ public static bool CanPlaceBuilding(this World world, string name, BuildingInfo

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>();
Expand Down
2 changes: 2 additions & 0 deletions mods/ra/weapons.yaml
Expand Up @@ -191,6 +191,7 @@ Hellfire:
Grenade:
ROF: 60
Range: 4
Report: grenade1
Bullet:
Speed: 5
High: true
Expand All @@ -206,6 +207,7 @@ Grenade:
InfDeath: 2
SmudgeType: Crater
Damage: 50
ImpactSound: kaboom12

75mm:
ROF: 40
Expand Down

0 comments on commit affd853

Please sign in to comment.