1
0
forked from 0ad/0ad

Fix selecting formations when cycling through idle entities.

Since formations have `cmpIdentity` now (b778caf146), they were
incorrectly selected when cycling through idle entities.

Reported and tested by: @Langbart
Differential revision: https://code.wildfiregames.com/D4588
Fixes #6490

This was SVN commit r26756.
This commit is contained in:
Freagarach 2022-04-03 17:37:34 +00:00
parent d847a1c479
commit f9fae35b59
2 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,7 @@
</object>
<object hotkey="selection.idleunit">
<action on="KeyDown">findIdleUnit(["!Domestic"]);</action>
<action on="KeyDown">findIdleUnit(["!Domestic+!Formation"]);</action>
</object>
<object hotkey="selection.cancel">

View File

@ -29,6 +29,7 @@
</FormationAttack>
<Identity>
<Civ/> <!-- Unused -->
<Classes datatype="tokens">Formation</Classes>
<Undeletable>true</Undeletable>
</Identity>
<Obstruction>