From 129e2347f27fec962831e72e7ec61f699f230054 Mon Sep 17 00:00:00 2001 From: Ali El Gariani Date: Wed, 23 Apr 2008 00:10:21 +0000 Subject: [PATCH] ":shroud" stop shrouding your units (auto-clear visible area) --- changelog | 3 ++- src/menu_events.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index f295affe535..e2045e18d26 100644 --- a/changelog +++ b/changelog @@ -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: diff --git a/src/menu_events.cpp b/src/menu_events.cpp index 5b9d94b05af..d0696001aee 100644 --- a/src/menu_events.cpp +++ b/src/menu_events.cpp @@ -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(); }