mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
more const-ness fixes
This commit is contained in:
parent
febf611c82
commit
b3fdf92d2b
@ -460,7 +460,7 @@ namespace MWPhysics
|
|||||||
class HeightField
|
class HeightField
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
HeightField(float* heights, int x, int y, float triSize, float sqrtVerts)
|
HeightField(const float* heights, int x, int y, float triSize, float sqrtVerts)
|
||||||
{
|
{
|
||||||
// find the minimum and maximum heights (needed for bullet)
|
// find the minimum and maximum heights (needed for bullet)
|
||||||
float minh = heights[0];
|
float minh = heights[0];
|
||||||
@ -927,7 +927,7 @@ namespace MWPhysics
|
|||||||
return MovementSolver::traceDown(ptr, found->second, mCollisionWorld, maxHeight);
|
return MovementSolver::traceDown(ptr, found->second, mCollisionWorld, maxHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PhysicsSystem::addHeightField (float* heights, int x, int y, float triSize, float sqrtVerts)
|
void PhysicsSystem::addHeightField (const float* heights, int x, int y, float triSize, float sqrtVerts)
|
||||||
{
|
{
|
||||||
HeightField *heightfield = new HeightField(heights, x, y, triSize, sqrtVerts);
|
HeightField *heightfield = new HeightField(heights, x, y, triSize, sqrtVerts);
|
||||||
mHeightFields[std::make_pair(x,y)] = heightfield;
|
mHeightFields[std::make_pair(x,y)] = heightfield;
|
||||||
|
@ -71,7 +71,7 @@ namespace MWPhysics
|
|||||||
void updatePosition (const MWWorld::Ptr& ptr);
|
void updatePosition (const MWWorld::Ptr& ptr);
|
||||||
|
|
||||||
|
|
||||||
void addHeightField (float* heights, int x, int y, float triSize, float sqrtVerts);
|
void addHeightField (const float* heights, int x, int y, float triSize, float sqrtVerts);
|
||||||
|
|
||||||
void removeHeightField (int x, int y);
|
void removeHeightField (int x, int y);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user