Release 1.11.4.1 (Winter Update)

This commit is contained in:
Markus Isberg
2025-12-08 14:56:47 +00:00
parent 21e34e5cd8
commit 598966f200
121 changed files with 1614 additions and 819 deletions
@@ -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);