":shroud" stop shrouding your units (auto-clear visible area)

This commit is contained in:
Ali El Gariani 2008-04-23 00:10:21 +00:00
parent df266dfd8b
commit 129e2347f2
2 changed files with 3 additions and 1 deletions

View File

@ -174,7 +174,8 @@ Version 1.5.0-svn:
* clean up gcc 4.3 warnings so the game now builds on fedora rawhide
with warnings treated as errors. A few bugs were found in the
process as well.
* "fog" and "shroud" debug commands now also update the minimap
* "fog" and "shroud" debug commands now also update the minimap, and
"shroud" stop shrouding your units.
Version 1.4:
* language and i18n:

View File

@ -2831,6 +2831,7 @@ private:
}
void console_handler::do_shroud() {
menu_handler_.teams_[team_num_ - 1].set_shroud( !menu_handler_.teams_[team_num_ - 1].uses_shroud() );
menu_handler_.clear_shroud(team_num_);
menu_handler_.gui_->recalculate_minimap();
menu_handler_.gui_->redraw_everything();
}