diff --git a/Subsurface/Source/Map/Hull.cs b/Subsurface/Source/Map/Hull.cs index e1b02a814..2ebdbca9e 100644 --- a/Subsurface/Source/Map/Hull.cs +++ b/Subsurface/Source/Map/Hull.cs @@ -278,9 +278,6 @@ namespace Barotrauma { Oxygen -= OxygenDetoriationSpeed * deltaTime; - - surface = MathHelper.Lerp(surface, GetSurfaceY(), deltaTime * 10.0f); - if (EditWater) { Vector2 position = cam.ScreenToWorld(PlayerInput.MousePosition); @@ -447,13 +444,13 @@ namespace Barotrauma { if (renderer.PositionInBuffer > renderer.vertices.Length - 6) return; - ////calculate where the surface should be based on the water volume + //calculate where the surface should be based on the water volume float top = rect.Y+Submarine.DrawPosition.Y; float bottom = top - rect.Height; - //float surfaceY = bottom + Volume / rect.Width; + float surfaceY = bottom + Volume / rect.Width; - ////interpolate the position of the rendered surface towards the "target surface" - //surface = surface + ((surfaceY - Submarine.DrawPosition.Y) - surface) / 10.0f; + //interpolate the position of the rendered surface towards the "target surface" + surface = surface + ((surfaceY - Submarine.DrawPosition.Y) - surface) / 10.0f; float drawSurface = surface + Submarine.DrawPosition.Y; Matrix transform = cam.Transform * Matrix.CreateOrthographic(GameMain.GraphicsWidth, GameMain.GraphicsHeight, -1, 1) * 0.5f; diff --git a/Subsurface/Source/Screens/EditMapScreen.cs b/Subsurface/Source/Screens/EditMapScreen.cs index cd1212b51..b43963d04 100644 --- a/Subsurface/Source/Screens/EditMapScreen.cs +++ b/Subsurface/Source/Screens/EditMapScreen.cs @@ -485,15 +485,17 @@ namespace Barotrauma if (dummyCharacter.SelectedConstruction != null) { - if (dummyCharacter.SelectedConstruction == dummyCharacter.ClosestItem) - { + //if (dummyCharacter.SelectedConstruction == dummyCharacter.ClosestItem) + //{ dummyCharacter.SelectedConstruction.DrawHUD(spriteBatch, dummyCharacter); - } - else - { - dummyCharacter.SelectedConstruction = null; - } + //} + //else + //{ + // dummyCharacter.SelectedConstruction = null; + //} + + if (PlayerInput.KeyHit(InputType.Select) && dummyCharacter.ClosestItem != dummyCharacter.SelectedConstruction) dummyCharacter.SelectedConstruction = null; } } diff --git a/Subsurface_Solution.v12.suo b/Subsurface_Solution.v12.suo index ae415765e..06bf73b6b 100644 Binary files a/Subsurface_Solution.v12.suo and b/Subsurface_Solution.v12.suo differ