fix gcc build

This commit is contained in:
Enno Rehling 2017-10-30 18:12:24 +01:00
parent 35742e8870
commit 9c24fe4b07
1 changed files with 5 additions and 5 deletions

View File

@ -477,18 +477,18 @@ static void test_follow_ship_msg(CuTest * tc) {
static void test_drifting_ships(CuTest *tc) {
ship *sh;
region *r1, *r2, *r3;
region *r;
terrain_type *t_ocean, *t_plain;
ship_type *st_boat;
test_setup();
t_ocean = test_create_terrain("ocean", SEA_REGION);
t_plain = test_create_terrain("plain", LAND_REGION);
r1 = test_create_region(0, 0, t_ocean);
r2 = test_create_region(1, 0, t_ocean);
r = test_create_region(0, 0, t_ocean);
test_create_region(1, 0, t_ocean);
st_boat = test_create_shiptype("boat");
sh = test_create_ship(r1, st_boat);
sh = test_create_ship(r, st_boat);
CuAssertIntEquals(tc, D_EAST, drift_target(sh));
r3 = test_create_region(-1, 0, t_plain);
test_create_region(-1, 0, t_plain);
CuAssertIntEquals(tc, D_WEST, drift_target(sh));
test_cleanup();
}