Hi guys,

I found a little bug in Alarm in Back feature about the sound : function SpeedcamAlarmInBack(). This is not affecting the functionnality, just the sound notification.

It's sure, the fllowing bug scenario has few chance to be visible in the real life, but it's possible.
It happens when the car speed is just equal to the speedcam speed limit + the tolerance.

In that case, as speed is not lower than (the speedlimit + tolerance) and not greater than (the speedlimit + tolerance), there is no sound.

A "lower or equal" for the first speed test to generate an approach beep is needed.

Spoiler: +

if vApprochingBeep() and MODEL.warning["speedcam_soundtype_" .. MODEL.navigation.curr_speedcam.category()]() then
if MODEL.navigation.car.current_speed() <= (vLastSpeedcamSpeedLimit() + vOverspeedTolerance()) then
MODEL.sound.play_effect("effects.ui.approach")
end
if vBeepOverspeed() and MODEL.navigation.car.current_speed() > (vLastSpeedcamSpeedLimit() + vOverspeedTolerance()) and
(vOverspeedAlertDistance() > (vDistanceInBack() * 10 / 18)) then
MODEL.sound.play_effect("effects.ui.speedcam_alarm")
end
end