From d3e05c7ddf9e9160f63c20b4960d171f99c8beea Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 21 Aug 2016 20:04:51 +0200 Subject: [PATCH] merge in and fix the economy tests --- src/economy.test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/economy.test.c b/src/economy.test.c index 8b0726ebc..ce09aae43 100644 --- a/src/economy.test.c +++ b/src/economy.test.c @@ -261,7 +261,7 @@ static void test_maintain_buildings(CuTest *tc) { // this building has no upkeep, it just works: b->flags = 0; - maintain_buildings(r, false); + maintain_buildings(r); CuAssertIntEquals(tc, BLD_MAINTAINED, fval(b, BLD_MAINTAINED)); req = calloc(2, sizeof(maintenance)); @@ -271,20 +271,20 @@ static void test_maintain_buildings(CuTest *tc) { // we cannot afford to pay: b->flags = 0; - maintain_buildings(r, false); + maintain_buildings(r); CuAssertIntEquals(tc, 0, fval(b, BLD_MAINTAINED)); // we can afford to pay: i_change(&u->items, itype, 100); b->flags = 0; - maintain_buildings(r, false); + maintain_buildings(r); CuAssertIntEquals(tc, BLD_MAINTAINED, fval(b, BLD_MAINTAINED)); CuAssertIntEquals(tc, 0, i_get(u->items, itype)); // this building has no owner, it doesn't work: u_set_building(u, NULL); b->flags = 0; - maintain_buildings(r, false); + maintain_buildings(r); CuAssertIntEquals(tc, 0, fval(b, BLD_MAINTAINED)); test_cleanup();