This is actually simpler to implement and is more consistent with the
[transform_unit] tag. Plus, the wiki documentation for
wesnoth.transform_unit() does not state that the hit points definitely
will be changed (it's a bit vague on that point), so this is
consistent with the existing documentation.
This is necessary to have accurate vision if shroud updates are
delayed. (The alternative would be to clear the undo stack before
saving the game, which would likely surprise many players and would
require handling sighted events before actually saving.)
This is for ease of seeing if a given string is in the list.
(Not many entries out of order, but the result had a long line, so I
redid the linebreaks as well.)
...allowing the processing overhead to be localized to the assignment
operators.
Really fixes bug #19201 (the reported example is still/again broken in
2012-12-13T03:24:23Z!jt_coding@verizon.net).
Related bugs that I verified have not been reintroduced: #19681,
#19690, #19702.
This allows the function to be called without side-effects, so it can
be used as a simple setter (as the name suggests). Since the previous
behavior was to have side-effects (which is bad style for a default),
this commit introduces a non-optional parameter, ensuring that I've
looked at each place where this function is called.
Both are simple wrappers for display::view_locked() and
display::set_view_locked(), respectively. view_locked() returns a
boolean specifying whether the view is locked, and lock_view() takes a
boolean specifying whether to lock the view (true) or unlock it (false).
...to the selected location
This adds a fourth argument (boolean) to
wesnoth.scroll_to_tile(). When true, the display code instantly warps
to the chosen location regardless of the scroll speed setting in
Preferences.
(1) Lua CA_wrapper slightly refactored, in preparation for adding CA
definitons using external files
(2) --debug_lua command line argument added. Unused at the moment, but
will be used for Lua debug mechanisms
Extended support for toggle_button in wesnoth.get_dialog_value,
wesnoth.set_dialog_value, and wesnoth.set_dialog_callback to also
apply to toggle_panel. Applies patch #3091.
Modified pathfind::paths to take a unit as argument instead of its
location; updated all callers.
As observed by mattsc, the function did in its callstack
re-query the unit at the location of a passed private proxy unit,
calculating the reach for the unit in the unit_map at that
location instead of the private one.
The other pathfind bindings already work for private proxy
units. Private lua proxy units were introduced after the pathfinder
functions were already exposed in the lua API.