List of previously used mapentities in editor, waypoint sprites, properly generating waypoints for hatches, waypoint paths are saved in editor instead of generating them on loading, gap particle bugfix, separate waypoint and spawnpoint prefabs, turret rotation limits visible in editor, hatch convexhull fix, new railgunloader sprite
This commit is contained in:
@@ -363,6 +363,16 @@ namespace Barotrauma
|
||||
return;
|
||||
}
|
||||
if (Submarine.SaveCurrent(fileName +".sub")) NewMessage("map saved", Color.Green);
|
||||
|
||||
if (WayPoint.WayPointList.Find(wp => !wp.MoveWithLevel && wp.SpawnType == SpawnType.Path)==null)
|
||||
{
|
||||
DebugConsole.ThrowError("No waypoints found in the submarine. Did you forget to generate the waypoints?");
|
||||
}
|
||||
|
||||
if (WayPoint.WayPointList.Find(wp => wp.SpawnType == SpawnType.Cargo) == null)
|
||||
{
|
||||
DebugConsole.ThrowError("The submarine doesn't have a waypoint marked as ''Cargo'', which are used for determining where to place bought items.");
|
||||
}
|
||||
break;
|
||||
case "loadmap":
|
||||
case "loadsub":
|
||||
@@ -454,7 +464,7 @@ namespace Barotrauma
|
||||
|
||||
//messages.Add(new ColoredText(msg, color));
|
||||
|
||||
if (textBox != null && textBox.Text == "") selectedIndex = listBox.children.Count;
|
||||
selectedIndex = listBox.children.Count;
|
||||
}
|
||||
|
||||
public static void ThrowError(string error, Exception e = null)
|
||||
|
||||
Reference in New Issue
Block a user