bridgecommand / bc

Bridge Command ship simulator
https://www.bridgecommand.co.uk
Other
61 stars 25 forks source link

Models: Fix radar.ini radar_sensitivity values #43

Closed antoine0183 closed 1 year ago

antoine0183 commented 1 year ago

Since the radar_sensitivity value gets parsed as an unsigned integer in RadarCalculations.cpp, the current value of 3.0 defaults to 0, which is then clamped to 1. This commit replaces the value in the config files with 1, resulting in the same final value for the scanAngleStep, but making sure that the value is parsed correctly and that it is clear from reading existing radar.ini files that the value should be an integer.

bridgecommand commented 1 year ago

No longer required, as radar_sensitivity (which was set incorrectly in the distributed radar.ini files) has been deleted and replaced with RADAR_AngularRes, with a default value set in bc5.ini, and overridden in the own ship radar.ini file.