forked from github/server
Nach 150 Runden ist eine neue Partei erlaubt.
This commit is contained in:
parent
a9b704f6a2
commit
14a3077f6e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue