diff --git a/Barotrauma/BarotraumaClient/Source/Items/Item.cs b/Barotrauma/BarotraumaClient/Source/Items/Item.cs index 83476d546..71260001a 100644 --- a/Barotrauma/BarotraumaClient/Source/Items/Item.cs +++ b/Barotrauma/BarotraumaClient/Source/Items/Item.cs @@ -51,7 +51,7 @@ namespace Barotrauma { itemInUseWarning = new GUITextBlock(new RectTransform(new Point(10), GUI.Canvas), "", textColor: Color.Orange, color: Color.Black, - textAlignment: Alignment.Center, style: "OuterGlow"); + textAlignment:Alignment.Center, style: "OuterGlow"); } return itemInUseWarning; } @@ -662,7 +662,7 @@ namespace Barotrauma new Rectangle( 20, 20, GameMain.GraphicsWidth - 40, - HUDLayoutSettings.InventoryTopY > 0 ? HUDLayoutSettings.InventoryTopY - 40 : GameMain.GraphicsHeight - 80)); + HUDLayoutSettings.InventoryTopY > 0 ? HUDLayoutSettings.InventoryTopY - 20 : GameMain.GraphicsHeight - 80)); foreach (ItemComponent ic in activeHUDs) { @@ -740,9 +740,9 @@ namespace Barotrauma } } - if (mergedHUDRect != Rectangle.Empty) + if (itemInUseWarning != null && mergedHUDRect != Rectangle.Empty) { - if (itemInUseWarning != null) { itemInUseWarning.Visible = false; } + itemInUseWarning.Visible = false; foreach (Character otherCharacter in Character.CharacterList) { if (otherCharacter != character && diff --git a/Barotrauma/BarotraumaClient/Source/Screens/MainMenuScreen.cs b/Barotrauma/BarotraumaClient/Source/Screens/MainMenuScreen.cs index dbceca279..e4fe091d2 100644 --- a/Barotrauma/BarotraumaClient/Source/Screens/MainMenuScreen.cs +++ b/Barotrauma/BarotraumaClient/Source/Screens/MainMenuScreen.cs @@ -712,11 +712,8 @@ namespace Barotrauma " -ownerkey " + ownerKey.ToString(); string filename = "DedicatedServer.exe"; -#if LINUX +#if LINUX || OSX filename = "./DedicatedServer"; -#elif OSX - filename = "mono"; - arguments = "./DedicatedServer.exe " + arguments; #endif var processInfo = new ProcessStartInfo { diff --git a/Barotrauma/BarotraumaShared/Source/GameSession/GameSession.cs b/Barotrauma/BarotraumaShared/Source/GameSession/GameSession.cs index 32e255691..7a47bff0e 100644 --- a/Barotrauma/BarotraumaShared/Source/GameSession/GameSession.cs +++ b/Barotrauma/BarotraumaShared/Source/GameSession/GameSession.cs @@ -159,8 +159,14 @@ namespace Barotrauma public void StartRound(Level level, bool reloadSub = true, bool loadSecondSub = false, bool mirrorLevel = false) { #if CLIENT - GameMain.LightManager.LosEnabled = GameMain.Client == null || GameMain.Client.CharacterInfo != null; - if (GameMain.Client == null) GameMain.LightManager.LosMode = GameMain.Config.LosMode; + if (GameMain.Client == null) + { + GameMain.LightManager.LosMode = GameMain.Config.LosMode; + } + else + { + GameMain.LightManager.LosEnabled = GameMain.Client.CharacterInfo != null; + } #endif this.Level = level; diff --git a/Barotrauma/BarotraumaShared/Submarines/Remora.sub b/Barotrauma/BarotraumaShared/Submarines/Remora.sub index 6f29eb586..26d37bd22 100644 Binary files a/Barotrauma/BarotraumaShared/Submarines/Remora.sub and b/Barotrauma/BarotraumaShared/Submarines/Remora.sub differ diff --git a/Barotrauma/BarotraumaShared/changelog.txt b/Barotrauma/BarotraumaShared/changelog.txt index 745a25aea..66313a114 100644 --- a/Barotrauma/BarotraumaShared/changelog.txt +++ b/Barotrauma/BarotraumaShared/changelog.txt @@ -1,35 +1,3 @@ ---------------------------------------------------------------------------------------------------------- -v0.9.0.4 ---------------------------------------------------------------------------------------------------------- - -- Fixed "Steam authentication failed" errors when trying to reconnect to a server after cancelling the -connection. -- Fixed clients occasionally failing to spawn items when playing using a different language than the server, -which caused them to get kicked. -- Fixed extra cargo failing to spawn in multiplayer when playing using a different language than the server. -- Fixed legacy items failing to load if a sub is saved with a language other than English and the language -then changed to something else. -- Fixed excessively small password input box when connecting to servers. -- Fixed a bug that occasionally caused items to drop from the inventory when moving items between -inventory slots in the multiplayer. -- Prevent junction boxes from getting damaged due to overvoltage in the engineering tutorial. -- Fixed structures getting scaled incorrectly when cloning a structure with a non-default scale in the -submarine editor. -- Fixed occasional crashes when leaving a multiplayer session while the "cinematic" at the end of the round -is still playing. -- Fixed items not being moved to the humanhusk's inventory when a huskified player dies (= clothes and -other gear seemed to magically disappear when the character "resurrected" as an AI husk). -- Fixed clients not seeing turrets rotating at their end when another client is operating the turret. -- Fixed hitscan projectiles (revolver rounds) going through walls if the weapon is fired while its -barrel is partially inside the wall. -- Fixed welding tools being able to weld doors and burn characters through walls. -- Fixed bots reporting leaks when there are holes in the interior walls. -- Fixes to the colliders of some of the shuttle wall pieces. -- Fixed Linux version crashing when attempting to browse for files in the Steam Workshop menu. -- Fixed credits not resizing when resolution is changed. -- Added an upper limit to impact damage done to ragdolls, preventing characters from getting instakilled if -a Moloch or another large monster smashes against the sub hard enough. - --------------------------------------------------------------------------------------------------------- v0.9.0.3 ---------------------------------------------------------------------------------------------------------