new players should have lastorders = 0, get password.

This commit is contained in:
Enno Rehling 2019-03-03 09:23:07 +01:00
parent 4bb2b5529d
commit d642ff0fe7
3 changed files with 5 additions and 3 deletions

2
cJSON

@ -1 +1 @@
Subproject commit 22a4fc9be31f0426e622f5bc9ebd7a1550845001
Subproject commit 8df81fb497cc48b089a57fcdc3a9933540ebc7c9

View file

@ -319,7 +319,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

@ -1606,7 +1606,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: */
faction_genpassword(f);
}
prepare_report(&ctx, f);