From 7fa6ba6ddd3c6b382ab1a3583ecfcfbc8b87d8ff Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 9 Apr 2010 21:06:23 +1200 Subject: [PATCH] Fixed offset on OBLI. --- OpenRA.Game/Traits/Util.cs | 4 ++-- mods/cnc/structures.yaml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/OpenRA.Game/Traits/Util.cs b/OpenRA.Game/Traits/Util.cs index f0b5a53d01..589ffaf7d7 100755 --- a/OpenRA.Game/Traits/Util.cs +++ b/OpenRA.Game/Traits/Util.cs @@ -1,4 +1,4 @@ -#region Copyright & License Information +#region Copyright & License Information /* * Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford. * This file is part of OpenRA. @@ -117,7 +117,7 @@ namespace OpenRA.Traits public static float2 GetTurretPosition(Actor self, Unit unit, int[] offset, float recoil) { - if( unit == null ) return int2.Zero; /* things that don't have a rotating base don't need the turrets repositioned */ + if( unit == null ) return offset.AbsOffset(); /* things that don't have a rotating base don't need the turrets repositioned */ var ru = self.traits.GetOrDefault(); var numDirs = (ru != null) ? ru.anim.CurrentSequence.Facings : 8; diff --git a/mods/cnc/structures.yaml b/mods/cnc/structures.yaml index 74ad0bdfd0..7da9a0771d 100644 --- a/mods/cnc/structures.yaml +++ b/mods/cnc/structures.yaml @@ -360,6 +360,7 @@ OBLI: ChargeAudio: obelpowr.aud AttackOmni: PrimaryWeapon: Laser + PrimaryOffset: 0,0,0,-16 FireDelay: 8 AutoTarget: -RenderBuilding: @@ -486,4 +487,4 @@ ATWR: AttackOmni: PrimaryWeapon: Tomahawk SecondaryWeapon: Tomahawk - AutoTarget: \ No newline at end of file + AutoTarget: