made it impossible to label shrouded hexes

This commit is contained in:
Dave White 2004-04-24 03:09:22 +00:00
parent 8f03ee6059
commit 9fbf2d9996

View file

@ -909,7 +909,7 @@ bool turn_info::can_execute_command(hotkey::HOTKEY_COMMAND command) const
return current_unit() != units_.end();
case hotkey::HOTKEY_LABEL_TERRAIN:
return map_.on_board(last_hex_);
return map_.on_board(last_hex_) && !gui_.shrouded(last_hex_.x,last_hex_.y);
//commands we can only do if in debug mode
case hotkey::HOTKEY_CREATE_UNIT: