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(); }