Fix a m_camera not used warning fix pointed by clang

This commit is contained in:
Loic Blot 2016-05-22 13:31:41 +02:00
parent ce42ff9cf7
commit f64a6259b2
2 changed files with 2 additions and 4 deletions

View File

@ -546,7 +546,6 @@ GenericCAO::GenericCAO(IGameDef *gamedef, ClientEnvironment *env):
// //
m_smgr(NULL), m_smgr(NULL),
m_irr(NULL), m_irr(NULL),
m_camera(NULL),
m_gamedef(NULL), m_gamedef(NULL),
m_selection_box(-BS/3.,-BS/3.,-BS/3., BS/3.,BS/3.,BS/3.), m_selection_box(-BS/3.,-BS/3.,-BS/3., BS/3.,BS/3.,BS/3.),
m_meshnode(NULL), m_meshnode(NULL),
@ -804,7 +803,7 @@ void GenericCAO::removeFromScene(bool permanent)
} }
} }
void GenericCAO::addToScene(scene::ISceneManager *smgr, void GenericCAO::addToScene(scene::ISceneManager *smgr,
ITextureSource *tsrc, IrrlichtDevice *irr) ITextureSource *tsrc, IrrlichtDevice *irr)
{ {
m_smgr = smgr; m_smgr = smgr;

View File

@ -68,7 +68,6 @@ private:
// //
scene::ISceneManager *m_smgr; scene::ISceneManager *m_smgr;
IrrlichtDevice *m_irr; IrrlichtDevice *m_irr;
Camera* m_camera;
IGameDef *m_gamedef; IGameDef *m_gamedef;
aabb3f m_selection_box; aabb3f m_selection_box;
scene::IMeshSceneNode *m_meshnode; scene::IMeshSceneNode *m_meshnode;
@ -206,7 +205,7 @@ public:
float time_from_last_punch=1000000); float time_from_last_punch=1000000);
std::string debugInfoText(); std::string debugInfoText();
std::string infoText() std::string infoText()
{ {
return m_prop.infotext; return m_prop.infotext;