From d642ff0fe74a73f4e54ed647ccc007fcabdbddf2 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 3 Mar 2019 09:23:07 +0100 Subject: [PATCH] new players should have lastorders = 0, get password. --- cJSON | 2 +- src/kernel/faction.c | 2 +- src/reports.c | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cJSON b/cJSON index 22a4fc9be..8df81fb49 160000 --- a/cJSON +++ b/cJSON @@ -1 +1 @@ -Subproject commit 22a4fc9be31f0426e622f5bc9ebd7a1550845001 +Subproject commit 8df81fb497cc48b089a57fcdc3a9933540ebc7c9 diff --git a/src/kernel/faction.c b/src/kernel/faction.c index fe1c5daa5..700c4cfc5 100755 --- a/src/kernel/faction.c +++ b/src/kernel/faction.c @@ -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; } diff --git a/src/reports.c b/src/reports.c index 3b808f3e7..e6b4772e3 100644 --- a/src/reports.c +++ b/src/reports.c @@ -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);