1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-29 16:06:57 +00:00

more const-ness fixes

This commit is contained in:
cc9cii 2015-11-01 17:07:40 +11:00
parent 44020df65f
commit 4f24c6a7c8
6 changed files with 6 additions and 6 deletions

View file

@ -181,7 +181,7 @@ namespace CSVWorld
} }
void PhysicsSystem::addHeightField(Ogre::SceneManager *sceneManager, void PhysicsSystem::addHeightField(Ogre::SceneManager *sceneManager,
float* heights, int x, int y, float yoffset, float triSize, float sqrtVerts) const float* heights, int x, int y, float yoffset, float triSize, float sqrtVerts)
{ {
std::string name = "HeightField_" std::string name = "HeightField_"
+ QString::number(x).toStdString() + "_" + QString::number(y).toStdString(); + QString::number(x).toStdString() + "_" + QString::number(y).toStdString();

View file

@ -63,7 +63,7 @@ namespace CSVWorld
void moveSceneNodes(const std::string sceneNodeName, const Ogre::Vector3 &position); void moveSceneNodes(const std::string sceneNodeName, const Ogre::Vector3 &position);
void addHeightField(Ogre::SceneManager *sceneManager, void addHeightField(Ogre::SceneManager *sceneManager,
float* heights, int x, int y, float yoffset, float triSize, float sqrtVerts); const float* heights, int x, int y, float yoffset, float triSize, float sqrtVerts);
void removeHeightField(Ogre::SceneManager *sceneManager, int x, int y); void removeHeightField(Ogre::SceneManager *sceneManager, int x, int y);

View file

@ -660,7 +660,7 @@ namespace MWWorld
return MovementSolver::traceDown(ptr, mEngine, maxHeight); return MovementSolver::traceDown(ptr, mEngine, maxHeight);
} }
void PhysicsSystem::addHeightField (float* heights, void PhysicsSystem::addHeightField (const float* heights,
int x, int y, float yoffset, int x, int y, float yoffset,
float triSize, float sqrtVerts) float triSize, float sqrtVerts)
{ {

View file

@ -42,7 +42,7 @@ namespace MWWorld
void addActor (const MWWorld::Ptr& ptr, const std::string& mesh); void addActor (const MWWorld::Ptr& ptr, const std::string& mesh);
void addHeightField (float* heights, void addHeightField (const float* heights,
int x, int y, float yoffset, int x, int y, float yoffset,
float triSize, float sqrtVerts); float triSize, float sqrtVerts);

View file

@ -363,7 +363,7 @@ namespace Physic
//delete BulletShapeManager::getSingletonPtr(); //delete BulletShapeManager::getSingletonPtr();
} }
void PhysicEngine::addHeightField(float* heights, void PhysicEngine::addHeightField(const float* heights,
int x, int y, float yoffset, int x, int y, float yoffset,
float triSize, float sqrtVerts) float triSize, float sqrtVerts)
{ {

View file

@ -227,7 +227,7 @@ namespace Physic
/** /**
* Add a HeightField to the simulation * Add a HeightField to the simulation
*/ */
void addHeightField(float* heights, void addHeightField(const float* heights,
int x, int y, float yoffset, int x, int y, float yoffset,
float triSize, float sqrtVerts); float triSize, float sqrtVerts);