Nach 150 Runden ist eine neue Partei erlaubt.
This commit is contained in:
Enno Rehling 2005-10-10 04:59:54 +00:00
parent a9b704f6a2
commit 14a3077f6e
1 changed files with 3 additions and 1 deletions

View File

@ -155,6 +155,8 @@ fix_demand(region *r)
return 0;
}
/* nach 150 Rudnen ist Neustart erlaubt */
#define MINAGE_MULTI 150
newfaction *
read_newfactions(const char * filename)
{
@ -178,7 +180,7 @@ read_newfactions(const char * filename)
&subscription, password)<=0) break;
}
for (f=factions;f;f=f->next) {
if (strcmp(f->email, email)==0 && f->subscription) break;
if (strcmp(f->email, email)==0 && f->subscription && f->age<MINAGE_MULTI) break;
}
if (f && f->units) continue; /* skip the ones we've already got */
for (nf=newfactions;nf;nf=nf->next) {