Lighting bugfixes, setting camera position to character on shift start
This commit is contained in:
@@ -39,7 +39,15 @@ namespace Barotrauma
|
||||
{
|
||||
base.Select();
|
||||
|
||||
if (Submarine.Loaded != null) cam.TargetPos = Submarine.Loaded.Position;
|
||||
if (Character.Controlled!=null)
|
||||
{
|
||||
cam.Position = Character.Controlled.WorldPosition;
|
||||
}
|
||||
else if (Submarine.Loaded != null)
|
||||
{
|
||||
cam.Position = Submarine.Loaded.Position;
|
||||
}
|
||||
|
||||
|
||||
foreach (MapEntity entity in MapEntity.mapEntityList)
|
||||
entity.IsHighlighted = false;
|
||||
|
||||
@@ -839,7 +839,9 @@ namespace Barotrauma
|
||||
public bool TrySelectSub(string subName, string md5Hash)
|
||||
{
|
||||
|
||||
Submarine sub = Submarine.SavedSubmarines.Find(m => m.Name == subName);
|
||||
subName = subName.ToLower();
|
||||
|
||||
Submarine sub = Submarine.SavedSubmarines.Find(m => m.Name.ToLower() == subName);
|
||||
if (sub == null)
|
||||
{
|
||||
new GUIMessageBox("Submarine not found!","The submarine ''" + subName + "'' has been selected by the server. Matching file not found in your map folder.");
|
||||
|
||||
Reference in New Issue
Block a user