From 81912e9b749406621285604f6b0ffac92cd4c197 Mon Sep 17 00:00:00 2001 From: Emmanuel AYME Date: Tue, 9 Sep 2025 07:27:58 +0200 Subject: [PATCH] Fix a bug where camera distance would be set to int instead of float --- Cronos The New Dawn/dllmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cronos The New Dawn/dllmain.cpp b/Cronos The New Dawn/dllmain.cpp index 2f80e15..1d88164 100644 --- a/Cronos The New Dawn/dllmain.cpp +++ b/Cronos The New Dawn/dllmain.cpp @@ -198,7 +198,7 @@ static void LoadSettings() else if (line.find(WORLD_FOV_SETTING) == 0) worldFOVvalue = std::stoi(line.substr(strlen(WORLD_FOV_SETTING))); else if (line.find(CAMERA_DISTANCE_SETTING) == 0) - cameraDistancevalue = std::stoi(line.substr(strlen(CAMERA_DISTANCE_SETTING))); + cameraDistancevalue = std::stof(line.substr(strlen(CAMERA_DISTANCE_SETTING))); } file.close(); }