mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 08:26:27 +02:00
Fixed GetFastestFrontAndRear()
This commit is contained in:
@@ -323,14 +323,16 @@ function RADAR:GetFastestFrontAndRear()
|
|||||||
|
|
||||||
local vehs = { front = nil, rear = nil }
|
local vehs = { front = nil, rear = nil }
|
||||||
|
|
||||||
for i = 1, -1, 2 do
|
for i = 1, -1, -2 do
|
||||||
for k, v in pairs( t ) do
|
for k, v in pairs( t ) do
|
||||||
if ( v.relPos == i ) then
|
if ( v.relPos == i ) then
|
||||||
if ( i == 1 ) then vehs.front = v else vehs.rear = v end
|
if ( i == 1 ) then vehs.front = v else vehs.rear = v end
|
||||||
return
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return vehs
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|||||||
Reference in New Issue
Block a user