Carry the queued aircraft and crew index into LocalMP, apply the native single-spawn limits to players and aircraft bots, and disable spares for single-slot modes. Verified with root and launcher type checks, check-patches and check-gui for 2.61.0.37 and 2.61.0.43, and an isolated launch-payload check.
7 lines
331 B
Plaintext
7 lines
331 B
Plaintext
function isCrewAvailableInSession(crew, unit = null, needDebug = false) {
|
|
let { idInCountry } = crew
|
|
let selected = getWtoSelectedSlot()
|
|
if (selected != null)
|
|
return idInCountry == selected.idInCountry && (unit?.name ?? crew?.aircraft) == selected.unitName
|
|
&& !is_bit_set(getNativeDisabledSlotsMask(), idInCountry)
|