From ebb08a6b371349821c05ec48f88ec45a48d7f3aa Mon Sep 17 00:00:00 2001 From: Emmanuel AYME Date: Mon, 15 Sep 2025 15:11:43 +0200 Subject: [PATCH] Fixed camera distance fix not initialising --- HellIsUs/dllmain.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HellIsUs/dllmain.cpp b/HellIsUs/dllmain.cpp index 8069c34..e814205 100644 --- a/HellIsUs/dllmain.cpp +++ b/HellIsUs/dllmain.cpp @@ -125,7 +125,9 @@ static void LoadFixDLL() // Apply initial values loaded from settings if (SetFOV) SetFOV(worldFOVvalue); + if (SetCameraDistance) SetCameraDistance(cameraDistancevalue); if (SetFOVFixEnabled) SetFOVFixEnabled(fov_fix_enabled, true); + if (SetCameraDistanceFixEnabled) SetCameraDistanceFixEnabled(camera_distance_fix_enabled, true); if (SetAspectRatioFixEnabled) SetAspectRatioFixEnabled(Aspect_fix_enabled, true); if (SetDOFFixEnabled) SetDOFFixEnabled(DOF_fix_enabled, true); if (SetCAFixEnabled) SetCAFixEnabled(CA_fix_enabled, true); @@ -207,7 +209,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(); }