[wesnoth-commits] [wesnoth/wesnoth] 650079: fix filter not working in [disable] (#2826)
GitHub
noreply at github.com
Tue Apr 3 21:57:11 UTC 2018
Branch: refs/heads/1.14
Home: https://github.com/wesnoth/wesnoth
Commit: 650079412c401705a85bd590a9dae9f8c146673b
https://github.com/wesnoth/wesnoth/commit/650079412c401705a85bd590a9dae9f8c146673b
Author: gfgtdf <daniel.gfgtdf at gmail.com>
Date: 2018-04-03 (Tue, 03 Apr 2018)
Changed paths:
M src/actions/attack.cpp
M src/gui/dialogs/unit_attack.cpp
Log Message:
-----------
fix filter not working in [disable] (#2826)
The problem was that the specials_context was not set during those
two get_special_bool calls
This removes what seems to be a rather useless optimisation in
battle_context::battle_context since choose_attacker_weapon would
just return 0 in that case.
fixes #2801
More information about the Commits
mailing list