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 <jtoppins@users.sourceforge.net>
This commit is contained in:
Jonathan Toppins 2018-06-27 21:32:11 -04:00
parent 3ed9555705
commit c952f134d8

View File

@ -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