The sounding of a locomotive horn at a private crossing or the failure to sound a locomotive horn at a private crossing is not a basis for a civil action against the railroad company that operated the locomotive, a board of county commissioners, or any local authority, or against the employees or agents of the company, board, or authority.