Skip to content

Commit

Permalink
Fix intercom PTT (IDI-Systems#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMagnetar authored Apr 6, 2018
1 parent 82a47c3 commit c642713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sys_intercom/fnc_intercomPFH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ for "_i" from 0 to ((count _intercoms) - 1) do {
if (!isNull _unit) then {
private _voiceActivation = (_stationConfig select STATION_INTERCOM_CONFIGURATION_INDEX) select INTERCOM_STATIONSTATUS_VOICEACTIVATION;
// If the unit is not pressing the key to talk to intercom, treat it like not transmitting.
if (!_voiceActivation && {_intercomConfig == INTERCOM_TX_ONLY || _intercomConfig == INTERCOM_RX_AND_TX} && {_unit getVariable [QGVAR(intercomPTT), false]}) then {
if (!_voiceActivation && {_intercomConfig == INTERCOM_TX_ONLY || _intercomConfig == INTERCOM_RX_AND_TX} && {!(_unit getVariable [QGVAR(intercomPTT), false])}) then {
_intercomConfig = INTERCOM_RX_ONLY;
};

Expand Down

0 comments on commit c642713

Please sign in to comment.