Fix a bug where camera distance would be set to int instead of float
This commit is contained in:
@@ -198,7 +198,7 @@ static void LoadSettings()
|
|||||||
else if (line.find(WORLD_FOV_SETTING) == 0)
|
else if (line.find(WORLD_FOV_SETTING) == 0)
|
||||||
worldFOVvalue = std::stoi(line.substr(strlen(WORLD_FOV_SETTING)));
|
worldFOVvalue = std::stoi(line.substr(strlen(WORLD_FOV_SETTING)));
|
||||||
else if (line.find(CAMERA_DISTANCE_SETTING) == 0)
|
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();
|
file.close();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user