Prevent selection reactions during move and attack operations.
This blocks select sound, anim and event. It's also another fix to the "cancel attack anim by clicking on unit"
This commit is contained in:
parent
962ce799ae
commit
32b8aae722
1 changed files with 1 additions and 1 deletions
|
@ -1218,7 +1218,7 @@ void mouse_handler::select_hex(const gamemap::location& hex, const bool browse)
|
|||
gui_->set_route(NULL);
|
||||
|
||||
// selection have impact only if we are not observing and it's our unit
|
||||
if (!browse && u->second.side() == gui_->viewing_team()+1) {
|
||||
if (!browse && !commands_disabled && u->second.side() == gui_->viewing_team()+1) {
|
||||
sound::play_UI_sound("select-unit.wav");
|
||||
u->second.set_selecting(*gui_, u->first);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue