From c952f134d86574c63a0aa2e6b286a8739a39ee05 Mon Sep 17 00:00:00 2001 From: Jonathan Toppins Date: Wed, 27 Jun 2018 21:32:11 -0400 Subject: [PATCH] a2a-dispatcher: remove fuel check in OnEventLand() handler This effectivally reverts the change made in commit ea96a5e0a38b ("Planes remaining at airfield fixed") to declutter airbases of aircraft which land at incorrect bases. The problem with the logic is an RTB command will not be issued until the fuel threshold is reached. Therefore the check will always be true resulting the the unit always being deleted. Bug: 875 Signed-off-by: Jonathan Toppins --- Moose Development/Moose/AI/AI_A2A_Dispatcher.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Moose Development/Moose/AI/AI_A2A_Dispatcher.lua b/Moose Development/Moose/AI/AI_A2A_Dispatcher.lua index d8018b2fe..1bb841b15 100644 --- a/Moose Development/Moose/AI/AI_A2A_Dispatcher.lua +++ b/Moose Development/Moose/AI/AI_A2A_Dispatcher.lua @@ -1033,10 +1033,6 @@ do -- AI_A2A_DISPATCHER DefenderUnit:Destroy() return end - if DefenderUnit:GetFuel() <= self.DefenderDefault.FuelThreshold then - DefenderUnit:Destroy() - return - end end end