Commit b6f67a0b authored by hybrid's avatar hybrid

Removed a default destructor. Fixed .x loader to avoid loading .xml files.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1287 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 14b4e58c
...@@ -22,14 +22,6 @@ CDummyTransformationSceneNode::CDummyTransformationSceneNode( ...@@ -22,14 +22,6 @@ CDummyTransformationSceneNode::CDummyTransformationSceneNode(
} }
//! destructor
CDummyTransformationSceneNode::~CDummyTransformationSceneNode()
{
}
//! returns the axis aligned bounding box of this node //! returns the axis aligned bounding box of this node
const core::aabbox3d<f32>& CDummyTransformationSceneNode::getBoundingBox() const const core::aabbox3d<f32>& CDummyTransformationSceneNode::getBoundingBox() const
{ {
......
...@@ -19,9 +19,6 @@ namespace scene ...@@ -19,9 +19,6 @@ namespace scene
//! constructor //! constructor
CDummyTransformationSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id); CDummyTransformationSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id);
//! destructor
~CDummyTransformationSceneNode();
//! returns the axis aligned bounding box of this node //! returns the axis aligned bounding box of this node
virtual const core::aabbox3d<f32>& getBoundingBox() const; virtual const core::aabbox3d<f32>& getBoundingBox() const;
......
...@@ -38,7 +38,7 @@ CXMeshFileLoader::CXMeshFileLoader(scene::ISceneManager* smgr, io::IFileSystem* ...@@ -38,7 +38,7 @@ CXMeshFileLoader::CXMeshFileLoader(scene::ISceneManager* smgr, io::IFileSystem*
//! based on the file extension (e.g. ".bsp") //! based on the file extension (e.g. ".bsp")
bool CXMeshFileLoader::isALoadableFileExtension(const c8* filename) const bool CXMeshFileLoader::isALoadableFileExtension(const c8* filename) const
{ {
return strstr(filename, ".x") != 0; return strncmp(&filename[strlen(filename)-2], ".x", 2) == 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment