From 8fa4055f08f339a3e8843c3e7cdebc351bdabb71 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 25 Feb 2019 14:06:26 +1300 Subject: [PATCH] home --- enemyAI/defenseManagerAI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;