Reallow selection of another unit on same side without deselect first

This commit is contained in:
David Mikos 2014-05-12 07:29:36 +09:30
parent 64e69cd653
commit 6872838ee3
2 changed files with 5 additions and 2 deletions

View File

@ -140,7 +140,9 @@ Version 1.13.0-dev:
which are superceded by [do_command]. [do_command] takes the body of a
[command] tag from ReplayWML, (some possibilities not allowed), and
executes the corresponding action. It is replay safe and triggers WML
events as appropriate.
events as appropriate.
* Reallow selection of another unit on same side without deselect first
Version 1.11.11:
* Add-ons server:
* Filenames with whitespace in them are no longer allowed.

View File

@ -502,7 +502,8 @@ void mouse_handler::select_or_action(bool browse)
unit_map::iterator selected_u = find_unit(selected_hex_);
if ( clicked_u != resources::units->end() &&
((selected_u == resources::units->end()) ||
(selected_u != resources::units->end() && selected_u->side() != side_num_)) )
(selected_u != resources::units->end() && selected_u->side() != side_num_) ||
(clicked_u->side() == side_num_ && clicked_u->id() != selected_u->id())) )
{
select_hex(last_hex_, false);
}