mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update Point.lua
This commit is contained in:
parent
1b3cac9424
commit
e4aa23ce3d
@ -1607,8 +1607,13 @@ do -- COORDINATE
|
||||
roadtype="railroads"
|
||||
end
|
||||
local x,y = land.getClosestPointOnRoads(roadtype, self.x, self.z)
|
||||
local vec2={ x = x, y = y }
|
||||
return COORDINATE:NewFromVec2(vec2)
|
||||
if x and y then
|
||||
local vec2={ x = x, y = y }
|
||||
local coord=COORDINATE:NewFromVec2(vec2)
|
||||
return coord
|
||||
else
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user