mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 23:51:41 +00:00
now allow the use of $unit inside [show_if] and [location_filter]...
...in the [set_menu_item] tag
This commit is contained in:
parent
af402717a1
commit
6be042c536
@ -24,6 +24,8 @@ Version 1.3.14+svn:
|
||||
* Tuned some details of the mouse handling.
|
||||
* WML engine:
|
||||
* Fixed order of sighted and moveto events (bug: #9560)
|
||||
* now allow the use of $unit inside [show_if] and [location_filter]
|
||||
in the [set_menu_item] tag
|
||||
* miscellaneous and bug fixes:
|
||||
* Fixed [message] not to close if it has input (bug #10846)
|
||||
* Fixed turn timer and end_turn commands order (bug #10849)
|
||||
|
@ -858,6 +858,7 @@ void play_controller::expand_wml_commands(std::vector<std::string>& items)
|
||||
gamestate_.set_variable("x1", buf);
|
||||
snprintf(buf,sizeof(buf),"%d",hex.y+1);
|
||||
gamestate_.set_variable("y1", buf);
|
||||
scoped_xy_unit highlighted_unit("unit", hex.x, hex.y, units_);
|
||||
|
||||
std::map<std::string, wml_menu_item*>::iterator itor;
|
||||
for (itor = gs_wmi.begin(); itor != gs_wmi.end()
|
||||
|
Loading…
x
Reference in New Issue
Block a user