forked from github/server
new players should have lastorders = 0, get password.
This commit is contained in:
parent
5dd12df100
commit
8253d8f833
2 changed files with 4 additions and 2 deletions
|
@ -299,7 +299,7 @@ unit *addplayer(region * r, faction * f)
|
||||||
} while (rc == NULL || urc == RC_DAEMON || !playerrace(rc));
|
} while (rc == NULL || urc == RC_DAEMON || !playerrace(rc));
|
||||||
u->irace = rc;
|
u->irace = rc;
|
||||||
}
|
}
|
||||||
|
f->lastorders = 0;
|
||||||
return u;
|
return u;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1603,7 +1603,9 @@ int write_reports(faction * f)
|
||||||
if (noreports) {
|
if (noreports) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (f->lastorders == 0) {
|
if (f->lastorders == 0 || f->age <= 1) {
|
||||||
|
/* neue Parteien, oder solche die noch NIE einen Zug gemacht haben,
|
||||||
|
* kriegen ein neues Passwort: */
|
||||||
password = faction_genpassword(f, buffer);
|
password = faction_genpassword(f, buffer);
|
||||||
}
|
}
|
||||||
prepare_report(&ctx, f, password);
|
prepare_report(&ctx, f, password);
|
||||||
|
|
Loading…
Reference in a new issue