forked from github/server
fix warnings on gcc
This commit is contained in:
parent
7c7206fafd
commit
bf2920d1ae
|
@ -281,20 +281,17 @@ static void test_magic_resistance(CuTest *tc)
|
||||||
battle *b;
|
battle *b;
|
||||||
region *r;
|
region *r;
|
||||||
unit *du;
|
unit *du;
|
||||||
weapon_type *wtype;
|
|
||||||
armor_type *ashield, *achain;
|
armor_type *ashield, *achain;
|
||||||
item_type *ibelt, *ishield, *ichain;
|
item_type *ishield, *ichain;
|
||||||
race *rc;
|
race *rc;
|
||||||
double magres = 0.0;
|
double magres = 0.0;
|
||||||
|
|
||||||
test_cleanup();
|
test_cleanup();
|
||||||
r = test_create_region(0, 0, 0);
|
r = test_create_region(0, 0, 0);
|
||||||
ibelt = it_get_or_create(rt_get_or_create("trollbelt"));
|
|
||||||
ishield = it_get_or_create(rt_get_or_create("shield"));
|
ishield = it_get_or_create(rt_get_or_create("shield"));
|
||||||
ashield = new_armortype(ishield, 0.0, 0.5, 1, ATF_SHIELD);
|
ashield = new_armortype(ishield, 0.0, 0.5, 1, ATF_SHIELD);
|
||||||
ichain = it_get_or_create(rt_get_or_create("chainmail"));
|
ichain = it_get_or_create(rt_get_or_create("chainmail"));
|
||||||
achain = new_armortype(ichain, 0.0, 0.5, 3, ATF_NONE);
|
achain = new_armortype(ichain, 0.0, 0.5, 3, ATF_NONE);
|
||||||
wtype = new_weapontype(it_get_or_create(rt_get_or_create("sword")), 0, 0.5, 0, 0, 0, 0, SK_MELEE, 1);
|
|
||||||
rc = test_create_race("human");
|
rc = test_create_race("human");
|
||||||
du = test_create_unit(test_create_faction(rc), r);
|
du = test_create_unit(test_create_faction(rc), r);
|
||||||
dt.index = 0;
|
dt.index = 0;
|
||||||
|
|
Loading…
Reference in New Issue