From 64ef71143a0ec98d2aa2a4864ef5a901630df1cd Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 1 Aug 2014 13:12:18 +0200 Subject: [PATCH] Use two-phase RESERVE in regular process_orders --- src/laws.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/laws.c b/src/laws.c index 5824369ca..8e30c76dd 100755 --- a/src/laws.c +++ b/src/laws.c @@ -4620,7 +4620,10 @@ void init_processor(void) p += 10; /* can't allow reserve before siege (weapons) */ add_proc_region(p, &enter_1, "Betreten (2. Versuch)"); - add_proc_order(p, K_RESERVE, &reserve_cmd, 0, "Reservieren"); + if (get_param_int(global.parameters, "rules.reserve.twophase", 0)) { + add_proc_order(p, K_RESERVE, &reserve_self, 0, "RESERVE (self)"); + } + add_proc_order(p, K_RESERVE, &reserve_cmd, 0, "RESERVE (all)"); add_proc_order(p, K_CLAIM, &claim_cmd, 0, NULL); add_proc_unit(p, &follow_unit, "Folge auf Einheiten setzen");