Function SetBuildNext
| 997 | function SetBuildNext takes integer qty, integer unitid returns nothing |
| 998 | local integer has = GetUnitCount(unitid) |
| 999 | if has >= qty then |
| 1000 | return
|
| 1001 | endif
|
| 1002 | call SetBuildAll(BUILD_UNIT,GetUnitCountDone(unitid)+1,unitid,-1) |
| 1003 | endfunction
|