Browse Source

hull 7

hull7
FatBoy-DOTC 1 year ago
parent
commit
ab1b7db86c
  1. 4
      src/engine/gameManager/BuildingManager.java
  2. 12
      src/engine/mobileAI/MobAI.java

4
src/engine/gameManager/BuildingManager.java

@ -968,7 +968,7 @@ public enum BuildingManager {
public static void bakeNavMesh(Building building) { public static void bakeNavMesh(Building building) {
if (building.parentZone == null) { if (building.parentZone == null) {
Logger.error("Attempt to bake navmesh with no parent: " + building.getObjectUUID()); //Logger.error("Attempt to bake navmesh with no parent: " + building.getObjectUUID());
return; return;
} }
@ -979,7 +979,7 @@ public enum BuildingManager {
convexHullList = _hull_data.get(building.meshUUID); convexHullList = _hull_data.get(building.meshUUID);
if (convexHullList == null) { if (convexHullList == null) {
Logger.error("Attempt to bake navmesh with no meshes: " + building.getObjectUUID()); //Logger.error("Attempt to bake navmesh with no meshes: " + building.getObjectUUID());
return; return;
} }

12
src/engine/mobileAI/MobAI.java

@ -308,7 +308,7 @@ public class MobAI {
aiMove(mob, true,0); aiMove(mob, true,0);
} catch (Exception e) { } catch (Exception e) {
Logger.info(mob.getObjectUUID() + " " + mob.getName() + " Failed At: AttackTarget" + " " + e.getMessage()); Logger.info(mob.getObjectUUID() + " " + mob.getName() + " Failed At: Patrol" + " " + e.getMessage());
} }
} }
@ -1349,11 +1349,11 @@ public class MobAI {
if(mob.isMoving()) { if(mob.isMoving()) {
return; return;
} }
if(!mob.isPathing){ //if(!mob.isPathing){
ArrayList<PathingUtilities.Node> path = PathingUtilities.getPath(mob, mob.destination); // ArrayList<PathingUtilities.Node> path = PathingUtilities.getPath(mob, mob.destination);
if(path != null && path.size() > 0) // if(path != null && path.size() > 0)
PathingUtilities.followPath(mob,path); // PathingUtilities.followPath(mob,path);
} //}
} }
public static void directMove(AbstractCharacter mob,boolean isWalking){ public static void directMove(AbstractCharacter mob,boolean isWalking){

Loading…
Cancel
Save