now allow the use of $unit inside [show_if] and [location_filter]...

...in the [set_menu_item] tag
This commit is contained in:
Patrick Parker 2008-01-25 01:41:36 +00:00
parent af402717a1
commit 6be042c536
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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()