Make player stance colours universally respected
This commit is contained in:
committed by
Matthias Mailänder
parent
2f331548e1
commit
5fc36bd45f
@@ -98,7 +98,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
|
||||
public IProjectile Create(ProjectileArgs args)
|
||||
{
|
||||
var c = UsePlayerColor ? args.SourceActor.Owner.Color : Color;
|
||||
var c = UsePlayerColor ? args.SourceActor.OwnerColor() : Color;
|
||||
return new LaserZap(this, args, c);
|
||||
}
|
||||
}
|
||||
@@ -126,7 +126,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
this.args = args;
|
||||
this.info = info;
|
||||
this.color = color;
|
||||
secondaryColor = info.SecondaryBeamUsePlayerColor ? args.SourceActor.Owner.Color : info.SecondaryBeamColor;
|
||||
secondaryColor = info.SecondaryBeamUsePlayerColor ? args.SourceActor.OwnerColor() : info.SecondaryBeamColor;
|
||||
target = args.PassiveTarget;
|
||||
source = args.Source;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user