(f4acd46ef) Don't enable the "report leaks" button inside ruins

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:29:24 +03:00
parent 6463face3b
commit 75640a321f
9 changed files with 100 additions and 119 deletions
@@ -331,8 +331,11 @@ namespace Barotrauma
if (!string.IsNullOrEmpty(text))
{
Vector2 pos = rect.Location.ToVector2() + textPos + TextOffset;
pos.X = (int)pos.X;
pos.Y = (int)pos.Y;
if (RoundToNearestPixel)
{
pos.X = (int)pos.X;
pos.Y = (int)pos.Y;
}
Font.DrawString(spriteBatch,
Wrap ? wrappedText : text,