new players should have lastorders = 0, get password.

This commit is contained in:
Enno Rehling 2019-03-03 09:23:07 +01:00
parent 0beec878c6
commit 5eb4115054
2 changed files with 4 additions and 2 deletions

View File

@ -299,7 +299,7 @@ unit *addplayer(region * r, faction * f)
} while (rc == NULL || urc == RC_DAEMON || !playerrace(rc));
u->irace = rc;
}
f->lastorders = 0;
return u;
}

View File

@ -1603,7 +1603,9 @@ int write_reports(faction * f)
if (noreports) {
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);
}
prepare_report(&ctx, f, password);