mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 17:39:44 +00:00
const ref float -> float
This commit is contained in:
parent
ac5b356e8d
commit
9e5db10288
2 changed files with 2 additions and 2 deletions
|
@ -388,7 +388,7 @@ void CSVRender::TerrainShapeMode::applyTerrainEditChanges()
|
|||
mAlteredCells.clear();
|
||||
}
|
||||
|
||||
float CSVRender::TerrainShapeMode::calculateBumpShape(const float& distance, int radius, const float& height)
|
||||
float CSVRender::TerrainShapeMode::calculateBumpShape(float distance, int radius, float height)
|
||||
{
|
||||
float distancePerRadius = distance / radius;
|
||||
return height - height * (3 * distancePerRadius * distancePerRadius - 2 * distancePerRadius * distancePerRadius * distancePerRadius);
|
||||
|
|
|
@ -102,7 +102,7 @@ namespace CSVRender
|
|||
void editTerrainShapeGrid (const std::pair<int, int>& vertexCoords, bool dragOperation);
|
||||
|
||||
/// Calculate height, when aiming for bump-shaped terrain change
|
||||
float calculateBumpShape(const float& distance, int radius, const float& height);
|
||||
float calculateBumpShape(float distance, int radius, float height);
|
||||
|
||||
/// set the target height for flatten tool
|
||||
void setFlattenToolTargetHeight(const WorldspaceHitResult& hit);
|
||||
|
|
Loading…
Reference in a new issue