From 3eea6880a8da4e0b6c1f75115f311dd45344ffbf Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 30 Apr 2005 19:00:57 +0000 Subject: [PATCH] =?UTF-8?q?Einmalig=20die=20Zugvorlage=20f=C3=BCr=20Eresse?= =?UTF-8?q?a=20deaktivieren,=20wenn=20ein=20Spieler=20den=20CR=20bekommt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/eressea/korrektur.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/eressea/korrektur.c b/src/eressea/korrektur.c index 8c83031e4..db092cc91 100644 --- a/src/eressea/korrektur.c +++ b/src/eressea/korrektur.c @@ -988,6 +988,28 @@ fix_familiars(void) return 0; } +#define REPORT_NR (1 << O_REPORT) +#define REPORT_CR (1 << O_COMPUTER) +#define REPORT_ZV (1 << O_ZUGVORLAGE) + +static int +disable_templates(void) +{ + faction * f; + for (f=factions;f;f=f->next) { + if (f->options & REPORT_CR) { + f->options &= ~REPORT_ZV; + } + } + return 0; +} + +static int +nothing(void) +{ + return 0; +} + void korrektur(void) { @@ -996,6 +1018,12 @@ korrektur(void) #if TEST_LOCALES setup_locales(); #endif + if (turn>400) { + do_once("zvrm", disable_templates()); + } else { + do_once("zvrm", nothing()); + } + fix_astralplane(); fix_firewalls(); fix_gates();