In main.cpp, only function ReloadDisplay() updates the view_dist variable from the settings. However, this function is never called in main.cpp. So it seems the view_dist is always the default value of 10000.0 regardless what is set in the display options.