From 010ff35c4ac3ff5dcac81e128d27297306016abd Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 14 Jan 2018 17:43:10 +0100 Subject: [PATCH] test_setup_world is deprecated. --- src/items/xerewards.test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/items/xerewards.test.c b/src/items/xerewards.test.c index 27c34b812..c0d20079e 100644 --- a/src/items/xerewards.test.c +++ b/src/items/xerewards.test.c @@ -20,7 +20,7 @@ static void test_manacrystal(CuTest *tc) { test_setup(); test_inject_messagetypes(); - u = test_create_unit(test_create_faction(NULL), test_create_region(0, 0, NULL)); + u = test_create_unit(test_create_faction(NULL), test_create_plain(0, 0)); itype = test_create_itemtype("manacrystal"); change_resource(u, itype->rtype, 1); CuAssertIntEquals(tc, -1, use_manacrystal(u, itype, 1, NULL)); @@ -50,8 +50,7 @@ static void test_skillpotion(CuTest *tc) { test_setup(); test_inject_messagetypes(); - test_create_world(); - u = test_create_unit(test_create_faction(NULL), findregion(0, 0)); + u = test_create_unit(test_create_faction(NULL), test_create_plain(0, 0)); itype = test_create_itemtype("skillpotion"); change_resource(u, itype->rtype, 2);