use string.F() extension method everywhere possible; fix various small issues in error messages

This commit is contained in:
Chris Forbes
2011-12-13 23:57:23 +13:00
parent af3d00836a
commit 40029c6688
10 changed files with 28 additions and 28 deletions

View File

@@ -15,6 +15,7 @@ namespace OpenRA.FileFormats
public readonly string Type;
public readonly int2 Location;
public readonly int Depth;
public SmudgeReference( string type, int2 location, int depth )
{
Type = type;
@@ -22,10 +23,9 @@ namespace OpenRA.FileFormats
Depth = depth;
}
public override string ToString ()
public override string ToString()
{
return string.Format("{0} {1},{2} {3}", Type, Location.X,Location.Y, Depth);
return "{0} {1},{2} {3}".F(Type, Location.X, Location.Y, Depth);
}
}
}