Fix variable_out_of_scope warnings in Missions

master
Nicolas Hake 2018-07-23 12:07:57 +02:00
parent 7fb098c4df
commit 14ed608941
1 changed files with 4 additions and 3 deletions

View File

@ -272,10 +272,11 @@ private func FindMainIslandPosition(int xpos, int sep, bool no_struct)
if (sep == nil)
sep = 250;
var x, y;
for (var i = 0; i < 100; i++)
{
var x = main_island_x + xpos + Random(sep*2+1)-sep;
var y = main_island_y / 2 - 220;
x = main_island_x + xpos + Random(sep*2+1)-sep;
y = main_island_y / 2 - 220;
while (!GBackSolid(x, y) && y < LandscapeHeight()*3/4)
y++;
@ -315,4 +316,4 @@ global func Particles_Smoke(...)
p.DampingX = 800;
}
return p;
}
}