fix compilation, test still fails

This commit is contained in:
Enno Rehling 2017-05-21 23:47:54 +02:00
parent abb7c9fb17
commit 0755830754
2 changed files with 2 additions and 8 deletions

View File

@ -1446,10 +1446,6 @@ static void test_show_both(CuTest *tc) {
test_cleanup();
}
static int low_wage(const region * r, const faction * f, const race * rc, int in_turn) {
return 1;
}
static void test_immigration(CuTest * tc)
{
region *r;

View File

@ -714,16 +714,14 @@ static void test_region_distance_ql(CuTest *tc) {
}
static void test_report_far_vision(CuTest *tc) {
unit *u1;
faction *f;
region *r1, *r2;
const race *rc;
test_setup();
f = test_create_faction(0);
r1 = test_create_region(0, 0, 0);
u1 = test_create_unit(f, r1);
test_create_unit(f, r1);
r2 = test_create_region(10, 0, 0);
rc = test_create_race("spell");
test_create_race("spell");
set_observer(r2, f, 10);
CuAssertPtrEquals(tc, r1, f->first);
CuAssertPtrEquals(tc, r2, f->last);