Fix a bug where camera distance would be set to int instead of float

This commit is contained in:
2025-09-09 07:27:58 +02:00
parent 5b5d72585d
commit 81912e9b74

View File

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