mirror of
https://github.com/jvmguy/JvmguyScenario.git
synced 2024-11-24 08:32:44 +02:00
local variable declaration needed.
This commit is contained in:
parent
95122a8a5f
commit
b0877d09f3
@ -349,7 +349,7 @@ function PickRandomSpawn( t, far )
|
||||
-- player.print("choosing a spawn from " .. ncandidates .. " candidates");
|
||||
if ncandidates > 0 then
|
||||
local pick = math.random(1,ncandidates)
|
||||
spawnPos = candidates[pick];
|
||||
local spawnPos = candidates[pick];
|
||||
-- player.print("chose " .. spawnPos.x .. "," .. spawnPos.y .. " distance " .. spawnPos.dist);
|
||||
return spawnPos;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user