mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-21 02:31:39 +00:00
Rat2
This commit is contained in:
@@ -379,7 +379,7 @@ function RATCRAFT:GetDeparture()
|
|||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
self:E("ERROR: Could not find airbase!")
|
self:E("ERROR: Could not find departure airbase!")
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
@@ -388,6 +388,19 @@ function RATCRAFT:GetDeparture()
|
|||||||
-- Zone
|
-- Zone
|
||||||
---
|
---
|
||||||
|
|
||||||
|
-- Departure airbase.
|
||||||
|
local zone=ZONE:New(departure.name)
|
||||||
|
|
||||||
|
if zone then
|
||||||
|
|
||||||
|
-- TODO: check if in range.
|
||||||
|
|
||||||
|
return departure
|
||||||
|
|
||||||
|
else
|
||||||
|
self:E("ERROR: Could not find departure zone!")
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -539,6 +552,19 @@ function RATCRAFT:GetDestination(departure)
|
|||||||
---
|
---
|
||||||
-- Zone
|
-- Zone
|
||||||
---
|
---
|
||||||
|
|
||||||
|
-- Departure airbase.
|
||||||
|
local zone=ZONE:New(destination.name)
|
||||||
|
|
||||||
|
if zone then
|
||||||
|
|
||||||
|
-- TODO: check if in range.
|
||||||
|
return destination
|
||||||
|
|
||||||
|
else
|
||||||
|
self:E("ERROR: Could not find destination zone!")
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user