Chine: Unstuck starting clonks if necessary (#1786).

qteditor
Clonkonaut 2016-07-25 17:50:38 +02:00
parent 48b5f27f14
commit 786b248cdf
1 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,14 @@ protected func InitializePlayer(int plr)
while (crew = GetCrew(plr, index))
{
crew->SetPosition(96 + RandomX(-12, 12), LandscapeHeight() - 92);
var u = 0;
while(crew->Stuck())
{
crew->SetPosition(crew->GetX(), crew->GetY()-1);
++u;
if (u > 50) // This is bad, the clonk will most likely die
break;
}
// First clonk can construct, others can chop.
if (index == 0)