StyleCop
This commit is contained in:
committed by
Matthias Mailänder
parent
e344b95a6f
commit
16ddecdcbf
@@ -88,7 +88,8 @@ namespace OpenRA
|
||||
public OwnerInit() { }
|
||||
public OwnerInit(string playerName) { this.PlayerName = playerName; }
|
||||
|
||||
public OwnerInit( Player player ) {
|
||||
public OwnerInit(Player player)
|
||||
{
|
||||
this.player = player;
|
||||
this.PlayerName = player.InternalName;
|
||||
}
|
||||
@@ -97,6 +98,7 @@ namespace OpenRA
|
||||
{
|
||||
if (player != null)
|
||||
return player;
|
||||
|
||||
return world.Players.First(x => x.InternalName == PlayerName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user