more const-ness fixes

sceneinput
Marc Zinnschlag 9 years ago
parent febf611c82
commit b3fdf92d2b

@ -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…
Cancel
Save