WAREHOUSE v0.6.5

* fixed bug for assignments
This commit is contained in:
Frank
2018-10-24 23:13:56 +02:00
parent c354fecc6d
commit 238fcf1176
2 changed files with 14 additions and 11 deletions

View File

@@ -880,8 +880,10 @@ end
function CONTROLLABLE:TaskOrbit(Coord, Altitude, Speed, CoordRaceTrack)
local Pattern=AI.Task.OrbitPattern.CIRCLE
local P2=nil
if CoordRaceTrack then
Pattern=AI.Task.OrbitPattern.RACE_TRACK
P2=CoordRaceTrack:GetVec2()
end
local Task = {
@@ -889,7 +891,7 @@ function CONTROLLABLE:TaskOrbit(Coord, Altitude, Speed, CoordRaceTrack)
params = {
pattern = Pattern,
point = Coord:GetVec2(),
point2 = CoordRaceTrack:GetVec2(),
point2 = P2,
speed = Speed,
altitude = Altitude,
}