forked from mirror/openmw-tes3mp
more const-ness fixes
This commit is contained in:
parent
febf611c82
commit
b3fdf92d2b
2 changed files with 3 additions and 3 deletions
|
@ -460,7 +460,7 @@ namespace MWPhysics
|
|||
class HeightField
|
||||
{
|
||||
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)
|
||||
float minh = heights[0];
|
||||
|
@ -927,7 +927,7 @@ namespace MWPhysics
|
|||
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);
|
||||
mHeightFields[std::make_pair(x,y)] = heightfield;
|
||||
|
|
|
@ -71,7 +71,7 @@ namespace MWPhysics
|
|||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue