Release 1.11.4.1 (Winter Update)
This commit is contained in:
@@ -230,7 +230,12 @@ namespace Barotrauma
|
||||
if (!primaryMouseButtonHeld && !secondaryMouseButtonHeld && !doubleClicked && !secondaryDoubleClicked) { return; }
|
||||
|
||||
Vector2 position = cam.ScreenToWorld(PlayerInput.MousePosition);
|
||||
Hull hull = FindHull(position);
|
||||
Hull hull =
|
||||
Screen.Selected is { IsEditor: true } ?
|
||||
//use the unoptimized version in the editor to make sure newly placed hulls are found
|
||||
//(FindHull uses the "EntityGrid" which is generated after loading the sub)
|
||||
FindHullUnoptimized(position) :
|
||||
FindHull(position);
|
||||
|
||||
if (hull == null || hull.IdFreed) { return; }
|
||||
if (EditWater)
|
||||
@@ -361,7 +366,7 @@ namespace Barotrauma
|
||||
new Rectangle(drawRect.X, -drawRect.Y, rect.Width, rect.Height),
|
||||
GUIStyle.Red * ((100.0f - OxygenPercentage) / 400.0f) * alpha, true, 0, (int)Math.Max(MathF.Ceiling(1.5f / Screen.Selected.Cam.Zoom), 1.0f));
|
||||
|
||||
if (GameMain.DebugDraw)
|
||||
if (GameMain.DebugDraw && Screen.Selected?.Cam is { Zoom: > 0.5f })
|
||||
{
|
||||
GUIStyle.SmallFont.DrawString(spriteBatch, "Pressure: " + ((int)pressure - rect.Y).ToString() +
|
||||
" - Oxygen: " + ((int)OxygenPercentage), new Vector2(drawRect.X + 5, -drawRect.Y + 5), Color.White);
|
||||
|
||||
Reference in New Issue
Block a user