- doors aren't ignored when checking visibility during waypoint generation or when finding a starting node for a path

- AICharacter will mark their path unreachable if their path is blocked by a door they cant open (may happen if someone closes the door after calculating the path)
- fixed exception when creating a Steering component when there's no active GameSession (i.e. in the editor)
This commit is contained in:
Regalis
2016-10-27 21:18:45 +03:00
parent 81ed90abf4
commit 48c07cfce5
6 changed files with 36 additions and 14 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ namespace Barotrauma
public PhysicsBody(Body farseerBody)
{
body = farseerBody;
body.UserData = this;
if (body.UserData == null) body.UserData = this;
LastSentPosition = body.Position;