do not use test_create_world, please.

This commit is contained in:
Enno Rehling 2017-12-27 22:30:07 +01:00
parent bf86c4e043
commit f6753261cd

View file

@ -169,12 +169,11 @@ static void test_enter_ship(CuTest * tc)
race * rc;
test_setup();
test_create_world();
r = findregion(0, 0);
rc = rc_get_or_create("human");
r = test_create_region(0, 0, NULL);
rc = test_create_race("smurf");
u = test_create_unit(test_create_faction(rc), r);
sh = test_create_ship(r, st_get_or_create("boat"));
sh = test_create_ship(r, NULL);
rc->flags = RCF_WALK;
u->ship = 0;