Direct target following only for playables.

Thanks to Sahar.
This commit is contained in:
MobiusDevelopment
2021-03-12 14:36:30 +00:00
parent 18800e1b65
commit 99999d417f
23 changed files with 23 additions and 23 deletions

View File

@@ -476,7 +476,7 @@ abstract class AbstractAI implements Ctrl
}
// Calculate movement data for a move to location action and add the actor to movingObjects of GameTimeController
_accessor.moveTo(pawn, pawn.getX(), pawn.getY(), pawn.getZ(), offset);
_accessor.moveTo(_actor.isPlayable() ? pawn : null, pawn.getX(), pawn.getY(), pawn.getZ(), offset);
// Mobius: Solves moving to wrong Z when not using geodata,
// but probably is not accurate and you should use geodata.