From c1b12883f8faf78ae6de0fa64c541d11689ede12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Mon, 25 May 2020 01:41:23 +0200 Subject: [PATCH] Fix calculating distance between two dt interactables --- .../projectSpecificClasses/DTEntities/DTSurvivalInteractable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AI/DecisionTrees/projectSpecificClasses/DTEntities/DTSurvivalInteractable.py b/src/AI/DecisionTrees/projectSpecificClasses/DTEntities/DTSurvivalInteractable.py index 766ebe5..cf6f2f7 100644 --- a/src/AI/DecisionTrees/projectSpecificClasses/DTEntities/DTSurvivalInteractable.py +++ b/src/AI/DecisionTrees/projectSpecificClasses/DTEntities/DTSurvivalInteractable.py @@ -67,5 +67,5 @@ class DTSurvivalInteractable: return DistFromObject.GE_3_LT_8 elif 8 <= accurateDistance < 15: return DistFromObject.GE_8_LT_15 - elif accurateDistance > 15: + elif accurateDistance >= 15: return DistFromObject.GE_15 \ No newline at end of file