Enabled the label tool again.

This commit is contained in:
Fabian Müller 2014-10-24 19:36:35 +02:00
parent e12af3a14f
commit 403fcc2fbd

View file

@ -368,9 +368,10 @@ bool editor_controller::can_execute_command(const hotkey::hotkey_command& cmd, i
return true;
// WWL dependent tools which don't rely on defined sides.
case HOTKEY_EDITOR_SCENARIO_EDIT:
case HOTKEY_EDITOR_TOOL_LABEL:
case HOTKEY_EDITOR_TOOL_ITEM:
return false; // !context_manager_->get_map_context().is_pure_map(); disabled for 1.12
case HOTKEY_EDITOR_TOOL_LABEL:
return !context_manager_->get_map_context().is_pure_map();
case HOTKEY_EDITOR_TOOL_UNIT:
case HOTKEY_EDITOR_TOOL_VILLAGE:
return !context_manager_->get_map_context().get_teams().empty();