diff --git a/OpenRA.Game/Network/SyncReport.cs b/OpenRA.Game/Network/SyncReport.cs index 016a410840..e8b911f7cf 100755 --- a/OpenRA.Game/Network/SyncReport.cs +++ b/OpenRA.Game/Network/SyncReport.cs @@ -59,7 +59,6 @@ namespace OpenRA.Network il.Emit(OpCodes.Castclass, t); il.Emit(OpCodes.Stloc, this_); - var dictAdd_ = dictType.GetMethod("Add", BindingFlags.Instance | BindingFlags.Public, null, new Type[] { typeof(string), typeof(string) }, null); var dictCtor_ = dictType.GetConstructor(Type.EmptyTypes); var objToString_ = typeof(object).GetMethod("ToString", BindingFlags.Instance | BindingFlags.Public, null, Type.EmptyTypes, null); diff --git a/OpenRA.Game/Player.cs b/OpenRA.Game/Player.cs index 74c7853efb..f519afb903 100644 --- a/OpenRA.Game/Player.cs +++ b/OpenRA.Game/Player.cs @@ -91,6 +91,11 @@ namespace OpenRA } } + public override string ToString() + { + return "{0} ({1})".F(PlayerName, ClientIndex); + } + public Dictionary Stances = new Dictionary(); } }