mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-05-30 18:02:41 +02:00
Fixed GetFastestFrontAndRear()
This commit is contained in:
+4
-2
@@ -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