diff --git a/enemyAI/defenseManagerAI.java b/enemyAI/defenseManagerAI.java index 71681e3..31f5809 100644 --- a/enemyAI/defenseManagerAI.java +++ b/enemyAI/defenseManagerAI.java @@ -302,7 +302,7 @@ public class defenseManagerAI { threatZ = minorThreatLocation.z; } - if(majorThreatLocation.x !=0) { + if(majorThreatLocation.x !=0) { distanceToThreat = (float)Math.sqrt((majorThreatLocation.x-constructionYards[i].centre.x)*(majorThreatLocation.x-constructionYards[i].centre.x) + (majorThreatLocation.z-constructionYards[i].centre.z)*(majorThreatLocation.z-constructionYards[i].centre.z)); threatX = majorThreatLocation.x;