mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
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:
@@ -1261,7 +1261,7 @@ function RADAR:LockAntennaSpeed( ant, override, lockRegardless )
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Lock in the speed data for the antenna
|
-- 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
|
else
|
||||||
self:ResetAntennaSpeedLock( ant )
|
self:ResetAntennaSpeedLock( ant )
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user