mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 21:49:03 +00:00
Reallow selection of another unit on same side without deselect first
This commit is contained in:
parent
64e69cd653
commit
6872838ee3
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user