From 01b46b143bcac8bbf113fe4eba0eede123e5e8b8 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 1 Feb 2015 12:57:54 +0100 Subject: [PATCH] add a configuration switch to disable force_leave (bug 2059) for now. --- src/laws.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/laws.c b/src/laws.c index 817679689..f7721c37f 100755 --- a/src/laws.c +++ b/src/laws.c @@ -4430,7 +4430,9 @@ void init_processor(void) add_proc_unit(p, follow_unit, "Folge auf Einheiten setzen"); p += 10; /* rest rng again before economics */ - add_proc_region(p, force_leave, "kick non-allies out of buildings/ships"); + if (get_param_int(global.parameters, "rules.owners.force_leave", 0)) { + add_proc_region(p, force_leave, "kick non-allies out of buildings/ships"); + } add_proc_region(p, economics, "Zerstoeren, Geben, Rekrutieren, Vergessen"); add_proc_order(p, K_PROMOTION, &promotion_cmd, 0, "Heldenbefoerderung");