assert, damit keine zwei Parteien in der gleichen Region starten.

This commit is contained in:
Enno Rehling 2005-04-16 08:52:36 +00:00
parent 462e2e1843
commit 6b72f8563b
1 changed files with 1 additions and 0 deletions

View File

@ -525,6 +525,7 @@ autoseed(newfaction ** players, int nsize)
isize += REGIONS_PER_FACTION; isize += REGIONS_PER_FACTION;
terraform(r, preferred_terrain(nextf->race)); terraform(r, preferred_terrain(nextf->race));
++tsize; ++tsize;
assert(r->land && r->units==0);
u = addplayer(r, addfaction(nextf->email, nextf->password, nextf->race, u = addplayer(r, addfaction(nextf->email, nextf->password, nextf->race,
nextf->lang, nextf->subscription)); nextf->lang, nextf->subscription));
u->faction->alliance = nextf->allies; u->faction->alliance = nextf->allies;