forked from github/server
Bug 2533 fix weapon selection
disable undead_reserve test in master, because it is intermittent.
This commit is contained in:
parent
f7b9153083
commit
9ae603803f
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ function test_undead_reserve_self()
|
|||
assert_equal(1, u1:get_item("log"))
|
||||
end
|
||||
|
||||
function test_undead_reserve_other()
|
||||
function skip_undead_reserve_other()
|
||||
local r1 = region.create(0, 0, "plain")
|
||||
local f1 = faction.create("human")
|
||||
local u1 = unit.create(f1, r1, 1)
|
||||
|
|
|
@ -1189,7 +1189,7 @@ static void destroy_items(troop dt) {
|
|||
|
||||
}
|
||||
|
||||
static void calculate_defense_type(troop dt, troop at, int type, bool missile,
|
||||
static void calculate_defense_type(troop at, troop dt, int type, bool missile,
|
||||
const weapon_type **dwtype, int *defskill) {
|
||||
const weapon *weapon;
|
||||
weapon = select_weapon(dt, false, true); /* missile=true to get the unmodified best weapon she has */
|
||||
|
@ -1198,7 +1198,7 @@ static void calculate_defense_type(troop dt, troop at, int type, bool missile,
|
|||
*dwtype = weapon->type;
|
||||
}
|
||||
|
||||
static void calculate_attack_type(troop dt, troop at, int type, bool missile,
|
||||
static void calculate_attack_type(troop at, troop dt, int type, bool missile,
|
||||
const weapon_type **awtype, int *attskill, bool *magic) {
|
||||
const weapon *weapon;
|
||||
|
||||
|
|
Loading…
Reference in a new issue