mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
Fixed GetFastestFrontAndRear()
This commit is contained in:
@@ -323,14 +323,16 @@ function RADAR:GetFastestFrontAndRear()
|
||||
|
||||
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
|
||||
if ( v.relPos == i ) then
|
||||
if ( i == 1 ) then vehs.front = v else vehs.rear = v end
|
||||
return
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return vehs
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
Reference in New Issue
Block a user