Ticket #90 (closed bug: fixed)
The assigned unit number is wrong
| Reported by: | Zoloom | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | other | Version: | 2.1_beta5 (unsupported!) |
| Keywords: | tower sensor assigned | Cc: | zoloom@… |
| Operating System: | GNU/Linux | Blocked By: | |
| Blocking: |
Description
In a party i assigned some VTOL to a sensor tower (for air units). They attack correctly when my base is attacked, but when i click on the tower i have something like that :
"0 units assigned"
But i have in fact 6 VTOL assigned...
Attachments
Change History
comment:2 Changed 21 months ago by i-NoD
Hi,
I think this patch might help.
It's for svn/trunk but can be applied without modifications to 2.1 branch (countAssignedDroids() function).
comment:3 Changed 21 months ago by Giel
- Status changed from new to closed
- Resolution set to fixed
(In [6464]) * Make function countAssignedDroids static because it's only used in the file where it's defined
- Code clean up
- Make countAssignedDroids const correct
- Make countAssignedDroids return the amount of artillery and VTOL droids that are assigned to a structure
- This fixes #90, patch by i-NoD, modified by me
comment:4 Changed 21 months ago by Giel
(In [6465]) Merged revision r6464 into the 2.1 branch via svnmerge from trunk
........
r6464 | muggenhor | 2008-12-13 18:58:25 +0100 (za, 13 dec 2008) | 5 lines
- Make function countAssignedDroids static because it's only used in the file where it's defined
- Code clean up
- Make countAssignedDroids const correct
- Make countAssignedDroids return the amount of artillery and VTOL droids that are assigned to a structure
- This fixes #90, patch by i-NoD, modified by me
........


The same bug is present for all buildings where you can assign units.