From cc4367f1b79f26b82ad72e6ea137d61d2ebad362 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 24 Jan 2016 14:55:43 +0100 Subject: [PATCH] borken merge fix --- src/kernel/region.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/kernel/region.c b/src/kernel/region.c index 117884d48..5a58632e6 100644 --- a/src/kernel/region.c +++ b/src/kernel/region.c @@ -595,27 +595,19 @@ bool is_coastregion(region * r) int rpeasants(const region * r) { -<<<<<<< HEAD - return r->land ? r->land->peasants : 0; -======= int value = 0; if (r->land) { value = r->land->peasants; assert(value >= 0); } return value; ->>>>>>> master } void rsetpeasants(region * r, int value) { -<<<<<<< HEAD - if (r->land) { - assert(value >= 0); -======= + assert(r->land || value==0); assert(value >= 0); if (r->land) { ->>>>>>> master r->land->peasants = value; } } @@ -627,14 +619,9 @@ int rmoney(const region * r) void rsethorses(const region * r, int value) { -<<<<<<< HEAD - if (r->land) { - assert(value >= 0); -======= assert(r->land || value==0); assert(value >= 0); if (r->land) { ->>>>>>> master r->land->horses = value; } }