Human AI with pathfinding and room hazard avoidance

This commit is contained in:
Regalis
2015-11-23 01:22:38 +02:00
parent 77024a31fb
commit c456fa3c90
32 changed files with 665 additions and 126 deletions
+2 -2
View File
@@ -210,7 +210,7 @@ namespace Barotrauma
{
ConnectionPanel panel = GetComponent<ConnectionPanel>();
if (panel == null) return null;
return panel.connections;
return panel.Connections;
}
}
@@ -790,7 +790,7 @@ namespace Barotrauma
{
ConnectionPanel panel = GetComponent<ConnectionPanel>();
if (panel == null) return;
foreach (Connection c in panel.connections)
foreach (Connection c in panel.Connections)
{
if (c.Name != connectionName) continue;