beyond-all-reason / Beyond-All-Reason

Main game repository for Beyond All Reason.
https://www.beyondallreason.info/
Other
1.69k stars 277 forks source link

Gridmenu: fix alt queue #3551

Closed hihoman23 closed 1 month ago

hihoman23 commented 1 month ago

Work done

Grid menu used widget:UnitFromFactory() to reduce the units queued number by 1. This wouldn't happen when the factory was on repeat, even if the unit was queued with alt. This is changed to widget:UnitCmdDone() so that the widget can see the command options to see if a unit was queued with alt, to reduce the factory count by 1.

Test steps