mirror of
https://github.com/peter-tanner/spidertron-squad-control.git
synced 2024-11-30 11:00:17 +08:00
another small fix
This commit is contained in:
parent
f9d4f4375c
commit
2ec3a88bc7
|
@ -58,5 +58,5 @@ Date: 2020-11-28
|
|||
- Added menu/gui to save and load squad configurations
|
||||
- Added Spidertron link tool (Link squads to an entity)
|
||||
- Added mod option to override the default tool/remote given by shortcut
|
||||
- 3NOTICE: THIS VERSION IS A WORK IN PROGRESS - CHANGELOG IS NOT FINAL
|
||||
- 4NOTICE: THIS VERSION IS A WORK IN PROGRESS - CHANGELOG IS NOT FINAL
|
||||
- Added mod option to disable player alerts
|
||||
- _NOTE: BETA RELEASE - USE AT YOUR OWN RISK!
|
||||
|
|
|
@ -42,7 +42,9 @@ end
|
|||
local function unitNumbers(entities)
|
||||
local ids = {}
|
||||
for i = 1, #entities do
|
||||
ids[#ids+1] = entities[i].unit_number
|
||||
if entities[i].valid then
|
||||
ids[#ids+1] = entities[i].unit_number
|
||||
end
|
||||
end
|
||||
return ids
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user