Skip to content

Commit

Permalink
Fix a m_camera not used warning fix pointed by clang
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed May 22, 2016
1 parent ce42ff9 commit f64a625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/content_cao.cpp
Expand Up @@ -546,7 +546,6 @@ GenericCAO::GenericCAO(IGameDef *gamedef, ClientEnvironment *env):
//
m_smgr(NULL),
m_irr(NULL),
m_camera(NULL),
m_gamedef(NULL),
m_selection_box(-BS/3.,-BS/3.,-BS/3., BS/3.,BS/3.,BS/3.),
m_meshnode(NULL),
Expand Down Expand Up @@ -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)
{
m_smgr = smgr;
Expand Down
3 changes: 1 addition & 2 deletions src/content_cao.h
Expand Up @@ -68,7 +68,6 @@ class GenericCAO : public ClientActiveObject
//
scene::ISceneManager *m_smgr;
IrrlichtDevice *m_irr;
Camera* m_camera;
IGameDef *m_gamedef;
aabb3f m_selection_box;
scene::IMeshSceneNode *m_meshnode;
Expand Down Expand Up @@ -206,7 +205,7 @@ class GenericCAO : public ClientActiveObject
float time_from_last_punch=1000000);

std::string debugInfoText();

std::string infoText()
{
return m_prop.infotext;
Expand Down

0 comments on commit f64a625

Please sign in to comment.