Fixed #293 (Flying AI)

This commit is contained in:
Seefo
2014-03-29 19:04:29 -04:00
parent f9dfc0a766
commit 19e42e6e40
+2 -2
View File
@@ -134,7 +134,7 @@ public abstract class AIState {
}
if(cell == null) {
float height = core.terrainService.getHeight(creature.getPlanetId(), newX, newX);
float height = core.terrainService.getHeight(creature.getPlanetId(), newX, newZ);
newY = height;
} else {
newY = currentPathPosition.y;
@@ -145,7 +145,7 @@ public abstract class AIState {
} else {
newX = currentPathPosition.x;
newZ = currentPathPosition.z;
newY = core.terrainService.getHeight(creature.getPlanetId(), newX, newX);
newY = core.terrainService.getHeight(creature.getPlanetId(), newX, newZ);
}
oldPosition = currentPathPosition;
}