Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
andreakarasho committed Sep 20, 2018
2 parents b19d20e + 6d1c50b commit 3a969d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/MapObjects/UserObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public override bool Render(Graphics g, int x, int y, int canvasW, int canvasH)
relativeX = gameX + x;
relativeY = gameY + y;

string name = Global.SettingsCollection["abbreviatenames"].ToBool() ? Name.Substring(0, 3) : Name;
string name = Name.Length > 3 && Global.SettingsCollection["abbreviatenames"].ToBool() ? Name.Substring(0, 3) : Name;

SizeF sizeName = g.MeasureString(name, Font);
int smartOffsetX = 0;
Expand Down

0 comments on commit 3a969d3

Please sign in to comment.