Build 0.18.0.0

This commit is contained in:
Markus Isberg
2022-05-13 00:55:52 +09:00
parent 15d18e6ff6
commit 7547a9b78a
218 changed files with 3881 additions and 2192 deletions
@@ -404,7 +404,7 @@ namespace Barotrauma
public static string LimitString(string str, ScalableFont font, int maxWidth)
{
if (maxWidth <= 0 || string.IsNullOrWhiteSpace(str)) return "";
if (maxWidth <= 0 || string.IsNullOrWhiteSpace(str)) { return ""; }
float currWidth = font.MeasureString("...").X;
for (int i = 0; i < str.Length; i++)