fix: audio not playing on speed lock

This was caused because I used the RADAR:IsMenuOpen() function to control if audio should be played. This is so if one player is in the operator menu, and the other locks a speed, the audio is not played for the player in the operator menu. The variable 'isMenuOpen' just needed inverting.
This commit is contained in:
Dan
2021-03-17 17:07:21 +00:00
parent 7e63c37e45
commit ff3ee6dfe5

View File

@@ -1261,7 +1261,7 @@ function RADAR:LockAntennaSpeed( ant, override, lockRegardless )
end
-- Lock in the speed data for the antenna
self:SetAntennaSpeedLock( ant, data[1], data[2], data[3], isMenuOpen )
self:SetAntennaSpeedLock( ant, data[1], data[2], data[3], not isMenuOpen )
else
self:ResetAntennaSpeedLock( ant )
end