Replace CPos.CenterPosition -> Map.CenterOfCell.
This commit is contained in:
@@ -49,7 +49,7 @@ namespace OpenRA.Mods.Cnc
|
||||
self.World.AddFrameEndTask(w =>
|
||||
{
|
||||
var info = Info as IonCannonPowerInfo;
|
||||
Sound.Play(Info.LaunchSound, order.TargetLocation.CenterPosition);
|
||||
Sound.Play(Info.LaunchSound, self.World.Map.CenterOfCell(order.TargetLocation));
|
||||
w.Add(new IonCannon(self.Owner, info.Weapon, w, order.TargetLocation, info.Effect, info.EffectPalette));
|
||||
|
||||
if (info.CameraActor == null)
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace OpenRA.Mods.Cnc
|
||||
var altitude = self.World.Map.Rules.Actors[actorType].Traits.Get<PlaneInfo>().CruiseAltitude;
|
||||
var a = w.CreateActor(actorType, new TypeDictionary
|
||||
{
|
||||
new CenterPositionInit(startPos.CenterPosition + new WVec(WRange.Zero, WRange.Zero, altitude)),
|
||||
new CenterPositionInit(w.Map.CenterOfCell(startPos) + new WVec(WRange.Zero, WRange.Zero, altitude)),
|
||||
new OwnerInit(owner),
|
||||
new FacingInit(64)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user