forked from github/server
do not use test_create_world, please.
This commit is contained in:
parent
bf86c4e043
commit
f6753261cd
1 changed files with 3 additions and 4 deletions
|
@ -169,12 +169,11 @@ static void test_enter_ship(CuTest * tc)
|
||||||
race * rc;
|
race * rc;
|
||||||
|
|
||||||
test_setup();
|
test_setup();
|
||||||
test_create_world();
|
|
||||||
|
|
||||||
r = findregion(0, 0);
|
r = test_create_region(0, 0, NULL);
|
||||||
rc = rc_get_or_create("human");
|
rc = test_create_race("smurf");
|
||||||
u = test_create_unit(test_create_faction(rc), r);
|
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;
|
rc->flags = RCF_WALK;
|
||||||
u->ship = 0;
|
u->ship = 0;
|
||||||
|
|
Loading…
Reference in a new issue