allow out-of-turn unit renaming again

This commit is contained in:
Gunter Labes 2008-10-17 20:38:49 +00:00
parent c1cd4c33df
commit 980236d7c2

View file

@ -564,7 +564,7 @@ bool play_controller::can_execute_command(hotkey::HOTKEY_COMMAND command, int in
return menu_handler_.current_unit(mouse_handler_) != units_.end();
case hotkey::HOTKEY_RENAME_UNIT:
return !events::commands_disabled && !browse_ &&
return !events::commands_disabled &&
menu_handler_.current_unit(mouse_handler_) != units_.end() &&
!(menu_handler_.current_unit(mouse_handler_)->second.unrenamable()) &&
menu_handler_.current_unit(mouse_handler_)->second.side() == gui_->viewing_team()+1 &&