(cd17ab725) Cleanup.

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:28:18 +03:00
parent c7ceed07c7
commit d84832296c
7 changed files with 65 additions and 21 deletions
@@ -331,11 +331,8 @@ namespace Barotrauma
if (!string.IsNullOrEmpty(text))
{
Vector2 pos = rect.Location.ToVector2() + textPos + TextOffset;
if (RoundToNearestPixel)
{
pos.X = (int)pos.X;
pos.Y = (int)pos.Y;
}
pos.X = (int)pos.X;
pos.Y = (int)pos.Y;
Font.DrawString(spriteBatch,
Wrap ? wrappedText : text,