(375481a35) Write save times as unix time values and display them using the system's current date format
This commit is contained in:
@@ -284,10 +284,15 @@ namespace Barotrauma
|
||||
{
|
||||
if (Font == null) return Vector2.Zero;
|
||||
|
||||
if (string.IsNullOrEmpty(text))
|
||||
{
|
||||
return Font.MeasureString(" ");
|
||||
}
|
||||
|
||||
Vector2 size = Vector2.Zero;
|
||||
while (size == Vector2.Zero)
|
||||
{
|
||||
try { size = Font.MeasureString((text == "") ? " " : text); }
|
||||
try { size = Font.MeasureString(string.IsNullOrEmpty(text) ? " " : text); }
|
||||
catch { text = text.Substring(0, text.Length - 1); }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user