backport 2008-11-26T06:55:10Z!crazy-ivanovic@gmx.net to 1.4...

...(bugfix for bug #12453 present both in 1.4 and trunk)
This commit is contained in:
Tomasz Śniatowski 2008-11-25 00:56:28 +01:00
parent ba45177200
commit 48259abb36

View file

@ -757,7 +757,8 @@ bool playsingle_controller::can_execute_command(hotkey::HOTKEY_COMMAND command,
return (!browse_ || linger_) && !events::commands_disabled;
case hotkey::HOTKEY_DELAY_SHROUD:
return !linger_ && (current_team().uses_fog() || current_team().uses_shroud());
return !linger_ && (current_team().uses_fog() || current_team().uses_shroud())
&& !events::commands_disabled;
case hotkey::HOTKEY_UPDATE_SHROUD:
return !linger_ && !events::commands_disabled && current_team().auto_shroud_updates() == false;